pptfz commented on issue #4944:
URL:
https://github.com/apache/incubator-dolphinscheduler/issues/4944#issuecomment-790387608
Thanks for your reply, I wrote it myself, it seems that your method is
better, thanks
```
server {
listen 80;
server_name ds.abc.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name ds.abc.com;
client_max_body_size 10240m;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:12345/dolphinscheduler;
}
location ^~ /dolphinscheduler {
proxy_pass http://127.0.0.1:12345/dolphinscheduler;
}
access_log /var/log/ds/ds.abc.com.access.log;
error_log /var/log/ds/ds.abc.com.error.log;
ssl_certificate ssl_key/1_abc.com_bundle.crt;
ssl_certificate_key ssl_key/2_abc.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]