Update nginx.conf
This commit is contained in:
parent
6ac40799bb
commit
ce21e9f9f6
27
nginx.conf
27
nginx.conf
@ -1,3 +1,6 @@
|
||||
# nginx : /usr/local/Cellar/nginx/nginx-1.17.8/objs/nginx
|
||||
# nginx.conf : /usr/local/nginx/conf/nginx.conf
|
||||
#user nobody;
|
||||
worker_processes 2;
|
||||
|
||||
events {
|
||||
@ -42,31 +45,31 @@ http {
|
||||
server_name localhost;
|
||||
|
||||
location = / {
|
||||
proxy_pass $API_BASE_URL/articles;
|
||||
proxy_pass http://jmalcloud:8088/articles;
|
||||
proxy_set_header Host $proxy_host;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
}
|
||||
|
||||
location /api {
|
||||
proxy_pass $API_BASE_URL;
|
||||
proxy_pass http://jmalcloud:8088;
|
||||
proxy_set_header Host $proxy_host;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
}
|
||||
|
||||
location /articles/articles {
|
||||
proxy_pass $API_BASE_URL/articles;
|
||||
proxy_pass http://jmalcloud:8088/articles;
|
||||
proxy_set_header Host $proxy_host;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
}
|
||||
|
||||
location /articles {
|
||||
proxy_pass $API_BASE_URL/articles;
|
||||
proxy_pass http://jmalcloud:8088/articles;
|
||||
proxy_set_header Host $proxy_host;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass $API_BASE_URL/articles/;
|
||||
proxy_pass http://jmalcloud:8088/articles/;
|
||||
proxy_set_header Host $proxy_host;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
}
|
||||
@ -77,7 +80,7 @@ http {
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
root /var/www/public;
|
||||
client_max_body_size 50m;
|
||||
client_body_buffer_size 512k;
|
||||
|
||||
@ -87,7 +90,7 @@ http {
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass $API_BASE_URL;
|
||||
proxy_pass http://jmalcloud:8088/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@ -106,7 +109,7 @@ http {
|
||||
}
|
||||
|
||||
location /webDAV/ {
|
||||
proxy_pass $API_BASE_URL/webDAV/;
|
||||
proxy_pass http://jmalcloud:8088/webDAV/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@ -125,7 +128,7 @@ http {
|
||||
}
|
||||
|
||||
location /file/ {
|
||||
proxy_pass $API_BASE_URL/file/;
|
||||
proxy_pass http://jmalcloud:8088/file/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-real-ip $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@ -144,7 +147,7 @@ http {
|
||||
}
|
||||
|
||||
location /mq {
|
||||
proxy_pass $API_BASE_URL/mq/;
|
||||
proxy_pass http://jmalcloud:8088/mq/;
|
||||
#websocket额外配置开始
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
@ -156,7 +159,7 @@ http {
|
||||
}
|
||||
|
||||
location /office {
|
||||
proxy_pass $API_OFFICE_URL;
|
||||
proxy_pass http://office/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Real-PORT $remote_port;
|
||||
@ -174,7 +177,7 @@ http {
|
||||
}
|
||||
|
||||
location /drawio/webapp/ {
|
||||
proxy_pass $API_DRAWIO_URL;
|
||||
proxy_pass http://drawio-webapp:8080/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Real-PORT $remote_port;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user