Search the Community
Showing results for tags 'reverse proxy'.
-
Hi i'm running DSM 6.1.4-15217 Update 5. Web station package installed. I tried to configure simplest reverse proxy configuration: redirect http://server/path to docker container at http://localhost:port, however it looks like for some stupid reason it cant be done via UI - only port redirection is available. So configuration tweaks required. I have read number of articles. One of those is here https://tech.setepontos.com/2016/07/06/synology-dsm-6-web-station-virtual-hosts-settings/ Most of them tell to work with /usr/local/etc/nginx/sites-enabled/* Ok. i created config file as below and put under that folder. Reloaded configs with nginx -s reload. (and yes, it picks up config, i had syntax error in my file and it told me that) server { listen 80; location /portainer { proxy_pass http://127.0.0.1:9000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } However, result is far from positive. My server named tank.local. When i open http://tank.local/portainer i always get redirected to http://tank.local:5000 Tried other containers like grafana or node-red. same result. Looked at server response : always getting 302 Moved permanently and redirection to http://tank.local:5000 I also inspected nginx.conf, tried to use another way - via /usr/loca/etc/nginx/conf.d/www.*.conf same result. at some point i was getting 404, but after i did synoservicecfg --restart nginx i'm always getting 302 moved permanently Any ideas?
- 3 replies
-
- dsm6.1
- reverse proxy
-
(and 1 more)
Tagged with: