-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dreambi: Use include instead of overwriting generic conf
- Loading branch information
1 parent
d6d971f
commit 49413f5
Showing
3 changed files
with
59 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
client_max_body_size 20M; | ||
|
||
root /home/{{ user }}/public_html/dream; | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /home/{{ user }}/public_html/dream; | ||
} | ||
|
||
{%- | ||
for location, path in ( | ||
('auth', 'auth'), | ||
('extensions', 'prod/extensions'), | ||
('prod/api', 'prod/api'), | ||
('prod/app', 'prod/app'), | ||
('prod/extensions', 'prod/extensions'), | ||
('prod/hub', 'prod/hub'), | ||
('prod/printing', 'prod/printing'), | ||
('prod/qrs', 'prod/qrs'), | ||
('prod/resources', 'prod/resources'), | ||
('prod/sense/app/' + app + '/', 'prod/sense/app/' + app + '/'), | ||
('prod/tempcontent', 'prod/tempcontent'), | ||
) | ||
%} | ||
|
||
location /{{ location }} { | ||
proxy_pass https://{{ proxypass }}:444/{{ path }}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_max_temp_file_size 0; | ||
proxy_connect_timeout 15; | ||
proxy_read_timeout 1h; | ||
proxy_http_version 1.1; | ||
} | ||
{%- endfor %} | ||
|
||
location /monitor { | ||
server_name_in_redirect on; | ||
return 302 /auth/sense/app/{{ app }}/overview; | ||
} | ||
|
||
location /afghanistan { | ||
try_files $uri $uri/ /afghanistan/index.html; | ||
} | ||
|
||
location /mdcp { | ||
root /home/{{ user }}/public_html; | ||
index index.html; | ||
} | ||
|
||
location /index.html { | ||
add_header Cache-Control no-cache; | ||
} |