initial commit
This commit is contained in:
21
example-conf/nginx.conf
Normal file
21
example-conf/nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user