Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nginx Duplicate Default connections Preventing Remote access from Unraid Connect.

Featured Replies

When setting remote access to Always with Static or UPNP, Remote connection fails because the NginX Daemon does not start.
a New Config File is generated with faulty configs.

nginx config Test

# nginx -t

nginx: [emerg] a duplicate default server for 192.168.1.55:443 in /etc/nginx/conf.d/servers.conf:73

nginx: configuration file /etc/nginx/nginx.conf test failed

Output when applying settings

Aug 23 18:00:59 FoxServer rc.nginx: Reloading Nginx server daemon...

Aug 23 18:00:59 FoxServer rc.nginx: Reloading Nginx server daemon...

Aug 23 18:00:59 FoxServer rc.nginx: Reloading Nginx server daemon...

Aug 23 18:01:00 FoxServer rc.nginx: Checking configuration for correct syntax and then trying to open files referenced in configuration...

Aug 23 18:01:00 FoxServer rc.nginx: /usr/sbin/nginx -t -c /etc/nginx/nginx.conf

Aug 23 18:01:00 FoxServer rc.nginx: Checking configuration for correct syntax and then trying to open files referenced in configuration...

Aug 23 18:01:00 FoxServer rc.nginx: Invalid configuration, Nginx server daemon not reloaded

Aug 23 18:01:00 FoxServer rc.nginx: /usr/sbin/nginx -t -c /etc/nginx/nginx.conf

Aug 23 18:01:00 FoxServer rc.nginx: Invalid configuration, Nginx server daemon not reloaded

Aug 23 18:01:00 FoxServer rc.nginx: Checking configuration for correct syntax and then trying to open files referenced in configuration...

Aug 23 18:01:00 FoxServer rc.nginx: /usr/sbin/nginx -t -c /etc/nginx/nginx.conf

Aug 23 18:01:00 FoxServer rc.nginx: Invalid configuration, Nginx server daemon not reloaded

Servers.config sample

# Listen on local socket for nchan publishers

#

server {

listen unix:/var/run/nginx.socket default_server;

location ~ /pub/(.*)$ {

nchan_publisher;

nchan_channel_id "$1";

nchan_message_buffer_length $arg_buffer_length;

nchan_message_timeout 0;

}

location ~ /nchan_stub_status$ {

nchan_stub_status;

}

}

#

# Always accept http requests from localhost

# ex: http://localhost

# ex: http://127.0.0.1

# ex: http://[::1]

#

server {

listen 127.0.0.1:80; # lo

listen 127.0.0.1:443; # lo

listen [::1]:80; # lo

listen [::1]:443; # lo

#

add_header Content-Security-Policy "frame-ancestors 'self' ";

include /etc/nginx/conf.d/locations.conf;

}

#

# Port settings for https protocol (self-signed cert)

# ex: https://tower.local

#

server {

listen 192.168.1.55:443 ssl default_server; # br0

listen 192.168.5.1:443 ssl default_server; # br2

listen 192.168.255.2:443 ssl default_server; # eth3

listen 100.125.166.23:443 ssl default_server; # tailscale1

listen [fd7a:115c:a1e0::e101:a617]:443 ssl default_server; # tailscale1

http2 on;

add_header Content-Security-Policy "frame-ancestors 'self' ";

# Ok to use concatenated pem files; nginx will do the right thing.

ssl_certificate /boot/config/ssl/certs/FoxServer_unraid_bundle.pem;

ssl_certificate_key /boot/config/ssl/certs/FoxServer_unraid_bundle.pem;

ssl_trusted_certificate /boot/config/ssl/certs/FoxServer_unraid_bundle.pem;

#

# OCSP stapling

ssl_stapling off;

ssl_stapling_verify off;

#

location ~ /wsproxy/443/ { return 403; }

include /etc/nginx/conf.d/locations.conf;

}

#

# Redirect http requests to https

# ex: http://tower.local -> https://tower.local

#

server {

listen 192.168.1.55:80 default_server; # br0

listen 192.168.5.1:80 default_server; # br2

listen 192.168.255.2:80 default_server; # eth3

listen 100.125.166.23:80 default_server; # tailscale1

listen [fd7a:115c:a1e0::e101:a617]:80 default_server; # tailscale1

add_header Content-Security-Policy "frame-ancestors 'self' ";

return 302 https://$host:443$request_uri;

}

#

# Port settings for https protocol (self-signed cert)

# ex: https://tower.local

#

server {

listen 192.168.1.55:443 ssl default_server; # br0

listen 192.168.5.1:443 ssl default_server; # br2

listen 192.168.255.2:443 ssl default_server; # eth3

listen 100.125.166.23:443 ssl default_server; # tailscale1

listen [fd7a:115c:a1e0::e101:a617]:443 ssl default_server; # tailscale1

http2 on;

add_header Content-Security-Policy "frame-ancestors 'self' ";

# Ok to use concatenated pem files; nginx will do the right thing.

ssl_certificate /boot/config/ssl/certs/FoxServer_unraid_bundle.pem;

ssl_certificate_key /boot/config/ssl/certs/FoxServer_unraid_bundle.pem;

ssl_trusted_certificate /boot/config/ssl/certs/FoxServer_unraid_bundle.pem;

#

# OCSP stapling

ssl_stapling off;

ssl_stapling_verify off;

#

location ~ /wsproxy/443/ { return 403; }

include /etc/nginx/conf.d/locations.conf;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.