vault_nginx
hashicorp vault behind nginx
How to get vault with https://myhost/vault address? non-root web url
- config.hcl - vault server configuration
- vault.location - location for vault service definiton in nginx
Server config
- api_addr = "http://127.0.0.1/vault/v1"
- tls_disable = 1
- proxy_protocol_behaviour = "use_always"
Nginx service location
- location /vault/ {
- proxy_pass http://127.0.0.1:32765/;
- proxy_redirect /ui/ /vault/ui/;
- sub_filter '' '';
- sub_filter '"/ui/' '"ui/';
- sub_filter_once off;
Nginx service additional location
- location /v1 {
- proxy_pass http://127.0.0.1:32765;