reverse proxy support via env vars

This commit is contained in:
bunkerity
2020-11-14 17:30:38 +01:00
parent 8f7cb5318e
commit 0f18e9c552
5 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
location %REVERSE_PROXY_URL% {
proxy_pass %REVERSE_PROXY_LOCATION%;
}

View File

@@ -38,4 +38,5 @@ server {
server_tokens %SERVER_TOKENS%;
%USE_OPEN_FILE_CACHE%
%USE_PROXY_CACHE%
%USE_REVERSE_PROXY%
}