initial commit

This commit is contained in:
2024-06-07 07:29:07 +03:00
commit 224ad208f1
9 changed files with 491 additions and 0 deletions

21
example-conf/nginx.conf Normal file
View 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;
}
}