You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
5 years ago
|
server {
|
||
|
listen 8888;
|
||
|
server_name localhost;
|
||
|
#charset koi8-r;
|
||
|
#access_log /var/log/nginx/host.access.log main;
|
||
|
location / {
|
||
5 years ago
|
root /opt/easyscheduler_source/dolphinscheduler-ui/dist;
|
||
5 years ago
|
index index.html index.html;
|
||
|
}
|
||
5 years ago
|
location /dolphinscheduler {
|
||
5 years ago
|
proxy_pass http://127.0.0.1:12345;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header x_real_ipP $remote_addr;
|
||
|
proxy_set_header remote_addr $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_connect_timeout 300s;
|
||
|
proxy_read_timeout 300s;
|
||
|
proxy_send_timeout 300s;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "upgrade";
|
||
|
}
|
||
|
#error_page 404 /404.html;
|
||
|
# redirect server error pages to the static page /50x.html
|
||
|
#
|
||
|
error_page 500 502 503 504 /50x.html;
|
||
|
location = /50x.html {
|
||
|
root /usr/share/nginx/html;
|
||
|
}
|
||
|
}
|