You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/03/04 01:41:07 UTC
[GitHub] [incubator-dolphinscheduler] pptfz opened a new issue #4944: The problem with configuring the NGINX reverse proxy
pptfz opened a new issue #4944:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4944
I've been using docker installed dolphinscheduler, access method is ` http://1.2.3.4:12345/dolphinscheduler` now
I want to use nginx to configure it to directly access the domain name, but I can't configure it. Could you please help me? Thank you
```
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;
}
access_log /var/log/ds/ds.abc.com.access.log;
error_log /var/log/ds/ds.abc.com.error.log;
ssl_certificate ssl_key/aldwx/1_aldwx.com_bundle.crt;
ssl_certificate_key ssl_key/aldwx/2_aldwx.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
}
```
Now my nginx configuration is as follows, access is `https://ds.aldwx.com/dolphinscheduler`, I want to use direct access to the `https://ds.aldwx.com` now, can I change how to configure nginx
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] chengshiwen commented on issue #4944: The problem with configuring the NGINX reverse proxy
Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #4944:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4944#issuecomment-790286121
@pptfz You can try to configure like:
```
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_pass http://127.0.0.1:12345/dolphinscheduler/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_hide_header Server;
proxy_redirect off;
location /dolphinscheduler {
proxy_pass http://127.0.0.1:12345;
}
}
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_ds.abc.com_bundle.crt;
ssl_certificate_key ssl_key/2_ds.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:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] xingchun-chen commented on issue #4944: The problem with configuring the NGINX reverse proxy
Posted by GitBox <gi...@apache.org>.
xingchun-chen commented on issue #4944:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4944#issuecomment-790462790
if your problem was resolved, please close it, thanks
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] pptfz commented on issue #4944: The problem with configuring the NGINX reverse proxy
Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] chengshiwen edited a comment on issue #4944: The problem with configuring the NGINX reverse proxy
Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #4944:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4944#issuecomment-790286121
@pptfz You can try to configure nginx like:
```
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_pass http://127.0.0.1:12345/dolphinscheduler/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_hide_header Server;
proxy_redirect off;
location /dolphinscheduler {
proxy_pass http://127.0.0.1:12345;
}
}
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_ds.abc.com_bundle.crt;
ssl_certificate_key ssl_key/2_ds.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:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] pptfz closed issue #4944: The problem with configuring the NGINX reverse proxy
Posted by GitBox <gi...@apache.org>.
pptfz closed issue #4944:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4944
----------------------------------------------------------------
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:
users@infra.apache.org