Update ingress.conf

This commit is contained in:
Alexandre
2022-05-25 21:18:16 +02:00
committed by GitHub
parent 9273f7b2ac
commit ae8f01bb7f

View File

@@ -11,37 +11,38 @@ server {
location / { location / {
# Proxy
proxy_pass http://127.0.0.1:2341; proxy_pass http://127.0.0.1:2341;
proxy_buffering off;
proxy_read_timeout 300;
# Websockets # Websockets
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host; proxy_set_header Host $host;
# Rewrite url # Rewrite url
sub_filter_once off;
sub_filter_types *; sub_filter_types *;
sub_filter "/manifest.json" "%%ingress_entry%%/manifest.json"; sub_filter "/manifest.json" "%%ingress_entry%%/manifest.json";
sub_filter "/browse" "%%ingress_entry%%/browse"; sub_filter "/browse" "%%ingress_entry%%/browse";
sub_filter "/static" "%%ingress_entry%%/static"; sub_filter "/static" "%%ingress_entry%%/static";
sub_filter "/auth" "%%ingress_entry%%/auth"; sub_filter "/auth" "%%ingress_entry%%/auth";
sub_filter "/api" "%%ingress_entry%%/api"; sub_filter "/api/v1" "%%ingress_entry%%/api/v1";
sub_filter "/api/v1%%ingress_entry%%" "%%ingress_entry%%/api/v1"; sub_filter "/api/v1%%ingress_entry%%" "%%ingress_entry%%/api/v1";
sub_filter "/albums" "%%ingress_entry%%/albums"; #sub_filter "/albums" "%%ingress_entry%%/albums";
sub_filter "/videos" "%%ingress_entry%%/videos"; #sub_filter "/videos" "%%ingress_entry%%/videos";
sub_filter "/people" "%%ingress_entry%%/people"; #sub_filter "/people" "%%ingress_entry%%/people";
sub_filter "/favorites" "%%ingress_entry%%/favorites"; #sub_filter "/favorites" "%%ingress_entry%%/favorites";
sub_filter "/moments" "%%ingress_entry%%/moments"; #sub_filter "/moments" "%%ingress_entry%%/moments";
sub_filter "/calendar" "%%ingress_entry%%/calendar"; #sub_filter "/calendar" "%%ingress_entry%%/calendar";
sub_filter "/places" "%%ingress_entry%%/places"; #sub_filter "/places" "%%ingress_entry%%/places";
sub_filter "/labels" "%%ingress_entry%%/labels"; #sub_filter "/labels" "%%ingress_entry%%/labels";
sub_filter "/folders" "%%ingress_entry%%/folders"; #sub_filter "/folders" "%%ingress_entry%%/folders";
sub_filter "/private" "%%ingress_entry%%/private"; #sub_filter "/private" "%%ingress_entry%%/private";
sub_filter "/library" "%%ingress_entry%%/library"; #sub_filter "/library" "%%ingress_entry%%/library";
sub_filter "/settings" "%%ingress_entry%%/settings"; #sub_filter "/settings" "%%ingress_entry%%/settings";
sub_filter_once off;
proxy_buffering off;
proxy_read_timeout 300;
# Allow frames # Allow frames
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;