Created
May 14, 2021 19:11
-
-
Save vencax/678aac542b6947b81bb745ff7e44807c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| DOMENA=neco.cz | |
| OBECNY_INDEX=path/to/index | |
| OBECNY_ADMIN_INDEX=path/to/admin/index | |
| server { | |
| server_name www.{{ DOMENA }}; | |
| rewrite ^(.*) https://{{ DOMENA }}$1 permanent; | |
| } | |
| server { | |
| listen 80; | |
| server_name {{ DOMENA }}; | |
| error_log /data1/tabslav/error_prod.log; | |
| access_log /data1/tabslav/access_prod.log; | |
| location / { | |
| root {{ OBECNY_INDEX }}; | |
| try_files $uri /index.html; | |
| } | |
| location /_files/ { | |
| proxy_pass http://127.0.0.1:2301/; | |
| proxy_set_header Host "taborskasetkani.eu"; | |
| } | |
| location /data { | |
| alias /data/bbb-web/{{ DOMENA }}; | |
| } | |
| location /admin/ { | |
| alias {{ OBECNY_ADMIN_INDEX }}; | |
| try_files $uri /index.html; | |
| } | |
| location /uniapi/ { | |
| proxy_set_header Host $http_host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_pass http://127.0.0.1:2305/; | |
| } | |
| location /cdn/ { | |
| proxy_set_header Host $http_host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_pass http://127.0.0.1:2306/; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment