summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2024-06-05 19:35:47 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2024-06-05 19:35:47 +0200
commitaafcdd7fc8d8e732af6b9ad8b32ac2a4e82aa692 (patch)
tree6f73d1a8fff98d9913c477459bfca38a560458cf
parent9bd31ca2787e7503068d7a7ce13fe53805a8652c (diff)
downloadpillar-aafcdd7fc8d8e732af6b9ad8b32ac2a4e82aa692.tar.xz
Proxy pie-in-the-sky to backend port
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nginx/pie_in_the_sky_kitchen.sls10
1 files changed, 8 insertions, 2 deletions
diff --git a/nginx/pie_in_the_sky_kitchen.sls b/nginx/pie_in_the_sky_kitchen.sls
index 28518a2..a7604d6 100644
--- a/nginx/pie_in_the_sky_kitchen.sls
+++ b/nginx/pie_in_the_sky_kitchen.sls
@@ -55,7 +55,13 @@ nginx:
- location /.well-known/acme-challenge:
- root: /srv/http
- - location ~ \.(js|css|png):
- - expires: modified +7d
+ - location /:
+ - proxy_http_version: '1.1'
+ - proxy_pass: http://127.0.0.1:6344
+ - proxy_set_header: X-Real-IP $remote_addr
+ - proxy_set_header: X-Forwarded-Proto https
+ - proxy_set_header: X-Forwarded-Host $host
+ - proxy_set_header: X-Forwarded-Server $host
+ - proxy_set_header: X-Forwarded-For $proxy_add_x_forwarded_for
# vim: ft=yaml et: