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.

[Support] Linuxserver.io - SWAG - Secure Web Application Gateway (Nginx/PHP/Certbot/Fail2ban)

Featured Replies

when trying unifi i get this

nginx: [emerg] "proxy_http_version" directive is duplicate in /config/nginx/proxy-confs/unifi.subdomain.conf:48

 

when trying sonarr i get something about ending

 

  • Replies 6.2k
  • Views 1.5m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Confirming this worked for me too. Not sure I needed to replace both, but I did anyway and Swag and Nextcloud are both back and up and running. For noobs like me, here's what I did: 1. Stop

  • I will only post this once. Feel free to refer folks to this post.   A few points of clarification:   The last update of this image didn't break things. Letsencrypt abruptly disabl

  • BigBoyMarky
    BigBoyMarky

    I replaced both the ssl.conf and nginx.conf files with the sample ones to update them since I did not make any custom modifications to either one of those and this resolved my issue.

Posted Images

4 hours ago, H2O_King89 said:

when trying unifi i get this


nginx: [emerg] "proxy_http_version" directive is duplicate in /config/nginx/proxy-confs/unifi.subdomain.conf:48

 

when trying sonarr i get something about ending

 

Then look for a duplicate directive in your confs

Edited by aptalca

4 hours ago, H2O_King89 said:

when trying unifi i get this


nginx: [emerg] "proxy_http_version" directive is duplicate in /config/nginx/proxy-confs/unifi.subdomain.conf:48

 

when trying sonarr i get something about ending

 

So remove or comment out the duplicate line. The error message tells you exactly which line and where it is. The only decision you have to make is which of the two lines you want to keep, if they have different values.

So remove or comment out the duplicate line. The error message tells you exactly which line and where it is. The only decision you have to make is which of the two lines you want to keep, if they have different values.


I don’t know what to look for because I’m not seeing a duplicate. This is a stock config.. all I did was remove .sample



Sent from my iPhone using Tapatalk Pro
1 hour ago, aptalca said:

Then look for a duplicate directive in your confs

yep. compare them had the same issue removed the duplicate lines and LE was happy

14 hours ago, aptalca said:

It seems the issue may be uppercase/lowercase related in the container name

Corrected the name no luck, so i renamed the container in the gui to just guacamole and matched the name in the config and restarted and it worked. did not like the container name.

1 hour ago, ijuarez said:

Corrected the name no luck, so i renamed the container in the gui to just guacamole and matched the name in the config and restarted and it worked. did not like the container name.

yup, I remember running into that issue before with emby where the container was named "EmbyServer" and it wouldn't match as nginx was looking for "embyserver"

 

Good idea to use all lowercase in container names, we do that for all lsio images

2 hours ago, H2O_King89 said:

 


I don’t know what to look for because I’m not seeing a duplicate. This is a stock config.. all I did was remove .sample



Sent from my iPhone using Tapatalk Pro

 

I realize we have a duplicate in there, but it shouldn't cause issues other than a warning in the log.

 

Just so you know, the "include" directive in nginx configs will import an external config. In unifi's conf, line 39 is calling an external file, proxy.conf, which also includes a proxy_http_version directive and that's how you have a duplicate 😉. We'll fix it in the next update, but in the meantime, you can delete line 48 to get rid of that second directive. 

Alright, I have been trying to follow SpaceInvader's video on how to get this set up and when I start Let Encrypt, it gives me this error

 

image.png.dfa4cc7ff17d18cad7435550bf86a1bc.png

 

My Port Forwarding is correct as far as I can tell, I am using the Unifi Controller Docker on the same server

 

image.png.7f07cefe9baa32f99a5b1223ea8f6e87.png

 

Here is my configuration for the docker container

 

image.thumb.png.21b31d58586a78fabe5a44bc78d57e0c.png

 

I have tried and tried but I get the same results and I am getting into the insanity territory (doing the same thing over and over). If anyone could help I would appreciate it. 

 

Alright, I have been trying to follow SpaceInvader's video on how to get this set up and when I start Let Encrypt, it gives me this error
 
image.png.dfa4cc7ff17d18cad7435550bf86a1bc.png
 
My Port Forwarding is correct as far as I can tell, I am using the Unifi Controller Docker on the same server
 
image.png.7f07cefe9baa32f99a5b1223ea8f6e87.png
 
Here is my configuration for the docker container
 
image.thumb.png.21b31d58586a78fabe5a44bc78d57e0c.png
 
I have tried and tried but I get the same results and I am getting into the insanity territory (doing the same thing over and over). If anyone could help I would appreciate it. 
 
Are you sure your ISP does not block port 80

Sent from my BND-L34 using Tapatalk

2 hours ago, ijuarez said:

Are you sure your ISP does not block port 80

Sent from my BND-L34 using Tapatalk
 

I contacted them and they said they do not.  I have used port 80 directly to a raspberry pi for Home Assistant in the past and the whole reason I am doing this is because I migrated my Home Assistant to my unraid server and I would like external access.  

5 minutes ago, mattgob86 said:

I contacted them and they said they do not.  I have used port 80 directly to a raspberry pi for Home Assistant in the past and the whole reason I am doing this is because I migrated my Home Assistant to my unraid server and I would like external access.  

what are you using to update the duckdns ip?

Just now, ijuarez said:

what are you using to update the duckdns ip?

The docker for DuckDNS, I was following the video when I got that error and haven't been able to move past it.  

1 minute ago, mattgob86 said:

The docker for DuckDNS, I was following the video when I got that error and haven't been able to move past it.  

when you log in to duckdns, are you seeing your IP

15 minutes ago, ijuarez said:

when you log in to duckdns, are you seeing your IP

Yes

1 minute ago, mattgob86 said:

Yes

looks like your using and UniFi product, can you post the configs of the port forward.

1 minute ago, ijuarez said:

looks like your using and UniFi product, can you post the configs of the port forward.

What configs beyond what the screenshot is are you talking about? 

image.thumb.png.eeb40082429bf41fea5e6a7c7a8ceab2.png

 

This is from my unifi cloud, I have apparently multiple IP addresses for the host, I have been using the 10.0.0.244 in the port forward but I have not tried the others, maybe I should be using the IP for the docker containers? 

2 minutes ago, mattgob86 said:

What configs beyond what the screenshot is are you talking about? 

I use pfSense, when i create a port forward it gives me several fine details on how that port forward is going to behave. LE can't get thru the firewall to verify its you.

 

Im sure you have the correct settings but i never hurts to have a second set of eyes take a look at it.

3 minutes ago, ijuarez said:

I use pfSense, when i create a port forward it gives me several fine details on how that port forward is going to behave. LE can't get thru the firewall to verify its you.

 

Im sure you have the correct settings but i never hurts to have a second set of eyes take a look at it.

In Unifi, the only other setting you can't see in the screenshot that I posted already is TCP,UDP or Both and I have them set to Both atm.

 

1 minute ago, H2O_King89 said:

Have you tired this?

http://www.canyouseeme.org/


Sent from my iPhone using Tapatalk Pro

I have tried this with it showing me it cannot see my port 80 and 443 but I tried just using the NGINX docker and it could see the 443 but not the 80.

Maybe double nat?


Sent from my iPhone using Tapatalk Pro

4 minutes ago, H2O_King89 said:

Maybe double nat?


Sent from my iPhone using Tapatalk Pro

I have the cable modem set to bridge mode and that has been working fine for a year plus.  I tried a couple days ago to verify that it wasn't that and I could not even get into the modem to change settings.   I have other ports open for plex that have not had problems so I trust my port settings.

Edited by mattgob86

1 minute ago, mattgob86 said:

I have the cable modem set to bridge mode and that has been working fine for a year plus.

and that's the only port forwards you have?

 

1 minute ago, ijuarez said:

and that's the only port forwards you have?

 

No, I have others that are not shown but are working fine.  The port 80/443 forward I had before moving Home Assistant was working great (other than the pi kept dying)

Edited by mattgob86

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.