Spaces:
Sleeping
Sleeping
Commit
·
3d32800
1
Parent(s):
b33c53d
Update default
Browse files
default
CHANGED
|
@@ -38,7 +38,7 @@ server {
|
|
| 38 |
#
|
| 39 |
# include snippets/snakeoil.conf;
|
| 40 |
|
| 41 |
-
root /home/user/app
|
| 42 |
#root /var/www/html;
|
| 43 |
|
| 44 |
# Add index.php to the list if you are using PHP
|
|
@@ -46,38 +46,7 @@ server {
|
|
| 46 |
|
| 47 |
server_name _;
|
| 48 |
|
| 49 |
-
|
| 50 |
-
proxy_set_header Host $host;
|
| 51 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 52 |
-
proxy_pass http://localhost:7870;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
location /api/ {
|
| 56 |
-
proxy_set_header Host $host;
|
| 57 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 58 |
-
|
| 59 |
-
proxy_pass http://localhost:7880/;
|
| 60 |
-
|
| 61 |
-
proxy_http_version 1.1;
|
| 62 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 63 |
-
proxy_set_header Connection "upgrade";
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
location /console/ {
|
| 67 |
-
auth_basic "Console";
|
| 68 |
-
auth_basic_user_file "/etc/nginx/htpasswd";
|
| 69 |
-
proxy_set_header X-WEBAUTH-USER $remote_user;
|
| 70 |
-
proxy_set_header Authorization "";
|
| 71 |
-
|
| 72 |
-
proxy_http_version 1.1;
|
| 73 |
-
proxy_set_header Host $host;
|
| 74 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 75 |
-
proxy_set_header X-Forwarded-Proto $scheme;
|
| 76 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 77 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 78 |
-
proxy_set_header Connection "upgrade";
|
| 79 |
-
proxy_pass http://localhost:7681/;
|
| 80 |
-
}
|
| 81 |
|
| 82 |
|
| 83 |
# pass PHP scripts to FastCGI server
|
|
|
|
| 38 |
#
|
| 39 |
# include snippets/snakeoil.conf;
|
| 40 |
|
| 41 |
+
root /home/user/app/;
|
| 42 |
#root /var/www/html;
|
| 43 |
|
| 44 |
# Add index.php to the list if you are using PHP
|
|
|
|
| 46 |
|
| 47 |
server_name _;
|
| 48 |
|
| 49 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
|
| 52 |
# pass PHP scripts to FastCGI server
|