Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swag Proxy-conf for Aria2-AriaNG #6

Open
XxAcielxX opened this issue Mar 7, 2021 · 0 comments
Open

Swag Proxy-conf for Aria2-AriaNG #6

XxAcielxX opened this issue Mar 7, 2021 · 0 comments

Comments

@XxAcielxX
Copy link

XxAcielxX commented Mar 7, 2021

Hello,

I have set up the container using your image, but now I'm trying to get it to work with linuxserver/swag Reverse-Proxy. I keep getting the 404 error when I access it through https://<my-domain.com>/aria2.

aria2.subfolder.conf

## Version 2021/03/07

location /aria2 {
    return 301 $scheme://$host/aria2/;
}

    location ^~ /aria2/ {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app aria2;
        set $upstream_port 8080;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;  
    }

    location ^~ /aria2/jsonrpc/ {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app aria2-ui;
        set $upstream_port 6800;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;  
    }
    
    location ^~ /aria2/rpc/ {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app aria2-ui;
        set $upstream_port 6800;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;  
    }

Is there something I'm missing in the above conf or base_url like other containers? Kindly guide me.

Regards~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant