question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reverse Proxy with SWAG?

See original GitHub issue

Question

Does anyone know how to setup a subdomain RP with the Linuxserver SWAG container?

I tried creating one:

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name apprise.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app apprise;
        set $upstream_port 8000;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    }
}

But when i set $upstream_proto to http i get a Contradictory scheme headers error when visiting the URL, and when I set $upstream_proto to https I get a plain old 502 Bad Gateway error.

Not sure where to go from here?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
STaRDoGGcommented, Jun 2, 2022

@YouveGotMeowxy This line is the perp: https://github.com/caronc/apprise-api/blob/fea552f7db20362b6f329043455587ea27cbe323/apprise_api/etc/nginx.conf#L52

Comment it out (or delete it) and then mount that file in your docker compose and restart the apprise container:

i.e.

- '/opt/docker/configs/apprise/nginx.conf:/opt/apprise/webapp/etc/nginx.conf:ro'
1reaction
caronccommented, Jun 3, 2022

Perfect, I’m going to close this ticket!🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

SWAG setup - LinuxServer.io
A reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These...
Read more >
linuxserver/docker-swag - GitHub
SWAG - Secure Web Application Gateway (formerly known as letsencrypt, no relation to Let's Encrypt™) sets up an Nginx webserver and reverse proxy...
Read more >
SWAG - Integration - Authelia
SWAG is a reverse proxy supported by Authelia. It's an NGINX proxy container with bundled configurations to make your life easier.
Read more >
SWAG - DockSTARTer
SWAG (Secure Web-server And Gateway) sets up an NGINX webserver and reverse proxy with PHP support and a built-in swag client that automates...
Read more >
SWAG Reverse Proxy, handling multiple domains across ...
At its core, SWAG is simply an Nginx reverse proxy that is paired with LetsEncrypt and Fail2Ban, packaged into a neat little Docker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found