22 lines
546 B
Nginx Configuration File
22 lines
546 B
Nginx Configuration File
upstream vault { server 127.0.0.1:8200 }
|
|
upstream vault_usage { server 127.0.0.1:3000 }
|
|
|
|
server {
|
|
location / {
|
|
proxy_pass http://vault;
|
|
}
|
|
location /v1/ {
|
|
proxy_pass http://vault;
|
|
mirror /mirror-vault-usage;
|
|
mirror_request_body off;
|
|
}
|
|
location = /mirror-vault-usage {
|
|
internal;
|
|
proxy_pass http://vault_usage;
|
|
proxy_pass_request_body off;
|
|
proxy_set_header Content-Length "";
|
|
proxy_set_header X-Vault-Token "";
|
|
proxy_http_version 1.1;
|
|
}
|
|
}
|