diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-10-05 16:40:32 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-10-05 16:40:32 -0700 |
| commit | 5e25a1fa842fbec4a19f8d58ddf2a2847a218344 (patch) | |
| tree | 916e54507ba972eb6ea51739af547dca37483726 /playbooks/roles/outbound/templates/proxy/nginx | |
| parent | 0ba6199538478b22763cc4c768c775a9c20baac9 (diff) | |
| download | infra-5e25a1fa842fbec4a19f8d58ddf2a2847a218344.tar.gz infra-5e25a1fa842fbec4a19f8d58ddf2a2847a218344.zip | |
Add ansicolor
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx')
| -rw-r--r-- | playbooks/roles/outbound/templates/proxy/nginx/conf.d/ansi.conf | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/ansi.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/ansi.conf new file mode 100644 index 0000000..3bec413 --- /dev/null +++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/ansi.conf @@ -0,0 +1,19 @@ +server { + listen 80; + server_name ansi.liz.coffee; + + real_ip_header X-Forwarded-For; + real_ip_recursive on; + set_real_ip_from {{ docker_network }}; + + location / { + proxy_pass https://{{ loadbalancer_ip }}; + proxy_ssl_verify off; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +} |
