Code Monkey home page Code Monkey logo

Comments (12)

nestyurkin avatar nestyurkin commented on May 20, 2024 1

confirm - now its works! thanks!

from wg-gen-web.

vx3r avatar vx3r commented on May 20, 2024

hi, can you please update to latest version 6e08b28 and share your config if the problem persists

from wg-gen-web.

nestyurkin avatar nestyurkin commented on May 20, 2024

it all about wg-gen-web behind traefik ...
if I disable authorization on the traefik side - everything works
I tried to delete authorization headers - it does not help
last working docker build - f90124a
I have configured automatic updating of images via watchtower, so it hurts to return to the UI and it does not work

my ansible config:

  - name: vx3r/wg-gen-web:latest
     tags:
       - docker
       - wireguard
       - wg-ui
     docker_container:           
       name: wg-gen-web
       image: vx3r/wg-gen-web:latest
       pull: yes        
       restart_policy: always
       recreate: yes
       volumes:
         - "{{docker_dir}}/wireguard:/data"
       labels:
         traefik.enable: 'true'
         traefik.http.routers.wireguard.tls: 'true'
         traefik.http.routers.wireguard.rule: "Host(`vpn.#########.ru`)"
         traefik.http.routers.wireguard.entrypoints: 'websecure'
         traefik.http.services.wireguard.loadbalancer.server.port: '8080'
         traefik.http.routers.wireguard.middlewares: 'auth-wg'
         traefik.http.middlewares.auth-wg.basicauth.users: '#########:##################'
         traefik.http.middlewares.auth-wg.basicauth.removeheader: 'true'
       env:
         TZ: Europe/Moscow
         WG_INTERFACE_NAME: wg0.conf
         WG_CONF_DIR: /data
         SMTP_HOST: smtp.yandex.ru
         SMTP_PORT: "465"
         SMTP_USERNAME: #########
         SMTP_PASSWORD: #########
         SMTP_FROM: #########
         GIN_MODE: release 

   - name: watchtower container
     tags:
       - docker
       - watchtower
     docker_container:           
       name: watchtower
       image: containrrr/watchtower
       restart_policy: always
       volumes: 
         - /var/run/docker.sock:/var/run/docker.sock
         - "{{docker_dir}}/watchtower/config.json:/config.json"
       command: --interval 300 --cleanup
       env:
         TZ: Europe/Moscow

from wg-gen-web.

vx3r avatar vx3r commented on May 20, 2024

ok make sens, basic auth does't work since i implemented oauth2 oidc. Can you switch to this auth method as described in readme ?

from wg-gen-web.

nestyurkin avatar nestyurkin commented on May 20, 2024

I switched to OAUTH2_PROVIDER_NAME: github
now i can login, and everyone who has a login to the github can also?
how can I manage users who can enter the UI ?

can logout and email field is empty
изображение

from wg-gen-web.

vx3r avatar vx3r commented on May 20, 2024

you have to take an oauth provider you control, like self hosted gitlab, nextcloud or Dex. i dont know if there is a way to limit github users. For email its weird, you have a public email in your account ?

from wg-gen-web.

nestyurkin avatar nestyurkin commented on May 20, 2024

set public email - now its ok

from wg-gen-web.

nestyurkin avatar nestyurkin commented on May 20, 2024

is there a chance to fix OAUTH2_PROVIDER_NAME=fake
to completely ignore authorization?

I'm switching to the old image for now :(

from wg-gen-web.

vx3r avatar vx3r commented on May 20, 2024

ok will try to make it work with auth basic

from wg-gen-web.

sphen13 avatar sphen13 commented on May 20, 2024

from wg-gen-web.

vx3r avatar vx3r commented on May 20, 2024

just pushed some changes, it must work now. Can you please confirm ? @sphen13 @nestyurkin

from wg-gen-web.

sphen13 avatar sphen13 commented on May 20, 2024

Thank you!! :)

from wg-gen-web.

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.