Skip to content

Commit

Permalink
iac: jankly short term fix for html linking in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller68 committed Sep 6, 2024
1 parent 8564ad6 commit 1f1c91b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions iac/ansible/service/config/nginx/site-confs/leaky.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,25 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
}

location ^~ /api/ {
# TODO: re-enable auth
proxy_pass http://leaky-server:3000/api/;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
}

location ^~ /_status/ {
# TODO: re-enable auth
proxy_pass http://leaky-server:3000/_status/;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
}

# All other routes go to the main server
location / {
# TODO: renable auth
proxy_pass http://leaky-server:3000;
proxy_pass http://leaky-server:3000/content/;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
}
Expand All @@ -27,4 +41,4 @@ server {
listen [::]:80;
server_name leaky.krondor.org;
return 301 https://$host$request_uri;
}
}

0 comments on commit 1f1c91b

Please sign in to comment.