Everything posted by sethrd
-
[Support] Linuxserver.io - SWAG - Secure Web Application Gateway (Nginx/PHP/Certbot/Fail2ban)
Got it. Removed my custom stuff, and added most of my config to the site-confs/default file and the errors are no longer showing. Still working on getting some of the proxy_pass working, mainly for plex access. Thanks aptalca!
-
[Support] Linuxserver.io - SWAG - Secure Web Application Gateway (Nginx/PHP/Certbot/Fail2ban)
Should I not be editing the nginx.conf then? Just put my config in the site-confs/default? I use a subdomain map for my proxy pass, with some nifty logic that has worked on other boxes, e.g.: map $subdomain $proxy_url { pr "http://192.168.1.103:3000"; py "http://192.168.1.103:8181"; cp "http://192.168.1.103:5050"; pms "http://192.168.1.103:32400"; nzb "http://192.168.1.103:6789"; down "http://192.168.1.103:9091"; } if ($host ~* ^([a-z0-9-\.]+)\.mydomain.tld$) { set $subdomain $1; } location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; if ($subdomain) { proxy_pass $proxy_url; } } if ($subdomain = "pms") { rewrite ^/$ $1/web; } if ($subdomain = "down") { rewrite ^/$ $1/transmission; } This has worked on other servers no problem, although I'm not used to running things in a docker, and haven't used unRAID in almost a year.
-
[Support] Linuxserver.io - SWAG - Secure Web Application Gateway (Nginx/PHP/Certbot/Fail2ban)
I just switched back to unRAID, and am working on getting the LE+Nginx docker setup. Nginx starts, but the logs are constantly being populated with the following: 2017/07/11 16:25:04 [emerg] 366#366: bind() to 0.0.0.0:82 failed (98: Address in use) 2017/07/11 16:25:04 [emerg] 366#366: bind() to 0.0.0.0:444 failed (98: Address in use) No matter what I put the port to in the docker config, or in the nginx.conf, these errors just stream across with the port I specified. Nothing is using those ports except for nginx. I'm able to access most of the proxy_pass (except plex, working on that too), but within just a few minutes, my error.log is growing huge. Anyone come across this before?