summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-08-11 18:39:55 -0700
committerElizabeth Hunt <me@liz.coffee>2025-08-11 18:39:55 -0700
commit08e92ca3b8ee6c38c3e19126378e51b46cf63b16 (patch)
tree6e9c0e0f394d645cea4208bcfab7e1d98d329e0e /playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf
parent4f90a2fc5fd134b27c2f0e32a5f1192003d3f0cf (diff)
downloadinfra-08e92ca3b8ee6c38c3e19126378e51b46cf63b16.tar.gz
infra-08e92ca3b8ee6c38c3e19126378e51b46cf63b16.zip
Oauth proxy and monitoring init
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf')
-rw-r--r--playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf
new file mode 100644
index 0000000..5fa47be
--- /dev/null
+++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/coffee.conf
@@ -0,0 +1,19 @@
+server {
+ listen 80;
+ server_name 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";
+ }
+}