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


5529 posts in this topic Last Reply

Recommended Posts

1 minute ago, SPOautos said:

 

Confusion......do you mean to remove the line item with "remove" to the right?  I thought you were meaning to remove any actual port number.

 

How would those have got there if they aren't supposed to be there?? Does the fact that its duplicated mean there may be something wrong with the install?

Yes, click the remove button.

It's not double in the template we supply, so it's something you have added.

 

It might interfere and cause issues, so best to remove it.

Link to post
  • Replies 5.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

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

Application Name: SWAG - Secure Web Application Gateway Application Site:  https://docs.linuxserver.io/general/swag Docker Hub: https://hub.docker.com/r/linuxserver/swag Github: https:/

There is a PR just merged, it will be in next Friday's image, and will let you append php.ini via editing a file in the config folder   If you want to see how the sausage is made: https://gi

Posted Images

3 minutes ago, saarg said:

Yes, click the remove button.

It's not double in the template we supply, so it's something you have added.

 

It might interfere and cause issues, so best to remove it.

Removed them, I don't see how I could have added them....I don't know anything at all about how to do something like that and haven't ventured into anything except where instructions point you too.

Link to post

I have unraid server which is running dockers and swag also. Everythink is working like should. The question is, can I run Plex in docker or just a server in ubuntu on another machine and access it through swag proxy like dockers in unraid server?

Link to post
1 hour ago, iccb said:

I have unraid server which is running dockers and swag also. Everythink is working like should. The question is, can I run Plex in docker or just a server in ubuntu on another machine and access it through swag proxy like dockers in unraid server?

You can run it as a container on unraid or on another server and still use swag. You just exchange plex with the IP for the other server. And port if you change it.

Link to post

I'm looking for a way to limit bandwidth based on IP (NOT on a per connection basis). I want to allow multiple connections from a single IP, but the total bandwidth per ip to have a specified limit.

 

I found a simple module that does this here, but it seems super old (but there are some newer pull requests for it that convert it to a dynamic module, and some that fix bugs): https://github.com/bigplum/Nginx-limit-traffic-rate-module

 

Is there a way to install new modules? Or another way to accomplish this goal?

Edited by Crash
mentioning the active pull requests on limit-traffic-rate module
Link to post
26 minutes ago, Crash said:

I'm looking for a way to limit bandwidth based on IP (NOT on a per connection basis). I want to allow multiple connections from a single IP, but the total bandwidth per ip to have a specified limit.

 

I found a simple module that does this here, but it seems super old (but there are some newer pull requests for it that convert it to a dynamic module, and some that fix bugs): https://github.com/bigplum/Nginx-limit-traffic-rate-module

 

Is there a way to install new modules? Or another way to accomplish this goal?

No, nginx would have to be compiled with it

Link to post

Hello,

I migrated to Swag a while ago with no issues at all. Today there was an update to swag that failed. Once I rebooted my server, the gui didn't start.

I booted into safemode with gui without plugins and was able to start the array.

I continued working on the system and found that If I stopped swag, the system started and gui loaded.I copied my settings removed swag, rebooted and the gui loaded. I then reinstalled swag and rebooted and the gui didn't load. I open a terminal and type docker stop swag and within seconds the gui loads.

If I restart swag all of my reverser proxies work perfectly.

I am completely lost.

 

Here is my latest diag

 

Thanks 

Chas

tower-diagnostics-20201028-1552.zip

Link to post
1 hour ago, tdunks said:

Both letsencrypt and Organizr updated today and one of which broke the organizr auth included in letsencrypt (SWAG). It just gives a 500 error now on any page that has auth enabled. Does anyone have a potential fix?

Of you haven't done any changes to the following files, nginx.conf, proxy.conf, and ssl.conf, then try to delete them and restart swag.

If that doesn't fix it, it might be organizr.

Link to post
7 hours ago, tdunks said:

Both letsencrypt and Organizr updated today and one of which broke the organizr auth included in letsencrypt (SWAG). It just gives a 500 error now on any page that has auth enabled. Does anyone have a potential fix?

Probably the links to the API. How do you use it?

There should be an include to:

/config/nginx/proxy-confs/organizr-auth.subfolder.conf;

and make sure the proxy_pass points to /api/v2/auth?group=$1

 

That fixed it for me

 

Link to post
4 hours ago, Tuumke said:

Probably the links to the API. How do you use it?

There should be an include to:

/config/nginx/proxy-confs/organizr-auth.subfolder.conf;

and make sure the proxy_pass points to /api/v2/auth?group=$1

 

That fixed it for me

 

Could you share you full contents of that file? I'm having this issue and I feel like I've made the appropriate api reference updates, but it's not working.

 

The Organizr docs mention making sure you include this block somewhere:

location /api/v2 {
	try_files $uri /api/v2/index.php$is_args$args;
}

Where does that go?

Link to post
i have problems with letsencrypt and emby. Is it acually REALLY nessesary to make a user defined docker bridge network??
No. It just makes it easier to use out of the box like plug and play. You just need to change the proxy pass to the IP and port

Sent from my Pixel 4 XL using Tapatalk

Link to post
22 hours ago, mudsloth said:

Could you share you full contents of that file? I'm having this issue and I feel like I've made the appropriate api reference updates, but it's not working.

 

The Organizr docs mention making sure you include this block somewhere:


location /api/v2 {
	try_files $uri /api/v2/index.php$is_args$args;
}

Where does that go?

There is a proxy conf named organizr-auth you can use instead of adding it to your proxy-conf.

Link to post

hey. I need direkt http downloads for my gameserver (maps etc..) in the past i used nginx for that and it worked fine. How can i realise it with swag. I want to mount the game folder someware to the swag container and i want to direkt access files from "domain.org/ut3"  how is that possible. I use subfolders btw

Link to post
32 minutes ago, Gee1 said:

hey. I need direkt http downloads for my gameserver (maps etc..) in the past i used nginx for that and it worked fine. How can i realise it with swag. I want to mount the game folder someware to the swag container and i want to direkt access files from "domain.org/ut3"  how is that possible. I use subfolders btw

Swag is using nginx.

Link to post

Hi.

Dunno what happen, but suddenly all of my customized config files has disappeared and the container is starting up with vanilla config files.

I do have a backup so I can recover, but how can I find the root cause of this?

Haven't done anything besides checking for container updates...

 

Thanks

Link to post
14 hours ago, gshlomi said:

Hi.

Dunno what happen, but suddenly all of my customized config files has disappeared and the container is starting up with vanilla config files.

I do have a backup so I can recover, but how can I find the root cause of this?

Haven't done anything besides checking for container updates...

 

Thanks

You might have changed the appdata share to not be on the cache drive anymore and the mover moved it to the array. And your appdata path for swag is using /mnt/cache

Link to post
You might have changed the appdata share to not be on the cache drive anymore and the mover moved it to the array. And your appdata path for swag is using /mnt/cache

Unfortunately no, it was the first thing I’ve checked...


Sent from my iPhone using Tapatalk
Link to post
2 hours ago, gshlomi said:


Unfortunately no, it was the first thing I’ve checked...


Sent from my iPhone using Tapatalk

Then you or someone deleted your appdata.

But this is really impossible for us to know as we have no info from you about what you have done to your server lately.

Link to post

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.