Giter Club home page Giter Club logo

Comments (4)

alpaca1thunder avatar alpaca1thunder commented on September 28, 2024

I swear I've gotten it to work with Swag a few months ago. I have the config saved, let me know if this works:

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

    server_name pasta.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

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

    location / {
        # 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;
        include /config/nginx/resolver.conf;
        set $upstream_app pasta;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    }
}

from pasta.

alpaca1thunder avatar alpaca1thunder commented on September 28, 2024

Also, in case anyone needs it--here is a Swag subfolder conf that worked for me

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

location ^~ /pasta/ {
    include /config/nginx/proxy.conf;
    resolver 127.0.0.11 valid=30s;
    set $upstream_app pasta;
    set $upstream_port 80;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    rewrite /pasta(.*) $1 break;
}

from pasta.

ponchohoncho avatar ponchohoncho commented on September 28, 2024

aha! It was I, the ding-dong, who put the public-facing port in the swag config. Thank you!

While we're here, I have the smallest docker-compose definition for future googlers

  pasta:
    image: cglatot/pasta
    container_name: pasta
    ports:
      - 4480:80 #i chose 4480, you can make choose own
    restart: unless-stopped

from pasta.

cglatot avatar cglatot commented on September 28, 2024

Glad you were able to get this sorted. Thanks for the additional information for the future :D

from pasta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.