Giter VIP home page Giter VIP logo

Comments (4)

kiwimato avatar kiwimato commented on July 3, 2024

Hey,

I'm not using SWAG for Invoice ninja but I'd be more than happy to help you with setting it up. I'm using SWAG with unifi controller, but not using the auto proxy thing.

In this case I think you need to put the docker gateway IP which should be: 172.17.0.1 in "swag url" and in "swag port" better try the non encrypted port which in my case is 8545:

root@Rick:/mnt/disk3/docker/appdata/swag/nginx# docker ps | grep invoice
c59d368184ee   maihai/invoiceninja_v5:migrate             "docker-entrypoint /…"   2 weeks ago    Up 9 hours              9000/tcp, 0.0.0.0:8545->80/tcp, 0.0.0.0:8443->443/tcp                                                                              invoiceninja-v5

My non auto proxy config:

root@Rick:/mnt/disk3/docker/appdata/swag/nginx# cat proxy-confs/unifi.subdomain.conf
## Version 2021/05/18
# make sure that your dns has a cname set for unifi and that your unifi-controller container is not using a base url
# NOTE: If you use the proxy_cookie_path setting in proxy.conf you need to remove HTTPOnly;
# ex: proxy_cookie_path / "/; Secure";

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

    server_name unifi.*;

    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 172.17.0.1;
        set $upstream_port 7080;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

        proxy_buffering off;
    }
}
root@Rick:/mnt/disk3/docker/appdata/swag/nginx# 

from invoiceninja_v5.

luisalrp avatar luisalrp commented on July 3, 2024

Tanks for your help. The main issue was I config it sleepy and instead of swag_address in key value I wrote "swag address". In the image I post it corrected in case someone needs it.
image

Here is the config regarding swag+authelia labels:
image

Now I am able to see the marvelous Authelia captive portal to introduce user and password and after login I get a 502 error. I'm one step closer to get it working.

from invoiceninja_v5.

kiwimato avatar kiwimato commented on July 3, 2024

Hmm I'm pretty sure you might have to try on a port different than 8443(I think 8545 as I mentioned in my previous comment is the default), because that will be a self signed certificate, so it may not work.
If that's not the case then you should check where this 502 is coming from, you should check invoiceninja docker logs

from invoiceninja_v5.

luisalrp avatar luisalrp commented on July 3, 2024

Thanks! I set as swag_port the container port, which is 80. I close the issue :)

from invoiceninja_v5.

Related Issues (3)

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.