Jump to content

sethrd

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by sethrd

  1. 1 hour ago, aptalca said:

     


    I suspect you highly modified the nginx. conf and perhaps removed the "daemon off" setting so it's trying to launch a second instance unsuccessfully.

    Did you by any chance copy your nginx settings over from another install? If so, go back to defaults by deleting them and restarting the container. Then modify the defaults as needed.

    If that doesn't work, post your container settings along with nginx and site configs and we'll take a look.

     

     

    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.

  2. 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?

×
×
  • Create New...