Skip to content

🐛 [2FAuth] app does not work anymore #2243

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

Closed
falkheiland opened this issue Jan 20, 2024 · 4 comments · Fixed by #2254
Closed

🐛 [2FAuth] app does not work anymore #2243

falkheiland opened this issue Jan 20, 2024 · 4 comments · Fixed by #2254

Comments

@falkheiland
Copy link
Contributor

          app does not work anymore. there is an open issue at the maintainer

Bubka/2FAuth#284

Originally posted by @falkheiland in #2178 (comment)

@falkheiland falkheiland changed the title app does not work anymore. there is an open issue at the maintainer [2FAuth] app does not work anymore. there is an open issue at the maintainer Jan 20, 2024
@falkheiland
Copy link
Contributor Author

by using runtipi/user-config/2fauth/docker-compose.yml

version: "3.7"
services:
  2fauth:
    environment:
      - ASSET_URL=https://2fauth.${LOCAL_DOMAIN}
      - APP_URL=https://2fauth.${LOCAL_DOMAIN}

i got it working again. the original app package does not specify those env, but they seem to be needed / defined to work with 5.0.3.

@JigSawFr
Copy link
Collaborator

Thanks @falkheiland

@JigSawFr JigSawFr changed the title [2FAuth] app does not work anymore. there is an open issue at the maintainer 🐛 [2FAuth] app does not work anymore Jan 21, 2024
@JigSawFr
Copy link
Collaborator

JigSawFr commented Jan 21, 2024

Hum, 1st try, failing. Troubleshooting

supervisord version: v0.6.8
PHP 8.1.22 (fpm-fcgi) (built: Aug  3 2023 23:11:21)
nginx version: nginx/1.22.1
touch: /2fauth/database.sqlite: Permission denied

JigSawFr added a commit to JigSawFr/runtipi-appstore-custom that referenced this issue Jan 21, 2024
@falkheiland
Copy link
Contributor Author

falkheiland commented Jan 24, 2024

#2254 introduced

     - ASSET_URL=https://${APP_DOMAIN}
     - APP_URL=https://${APP_DOMAIN}

since 2FAuth only listens on the APP_URL , using APP_DOMAIN only works if the app is published.
using LOCAL_DOMAIN is also only useful if accessed locally.
Maybe ist makes sense to provide additional info in the APP-Text as to how use a user-config to use LOCAL_DOMAIN instead if necessary?

something like that:


to use 2FAuth on a local domain create a file:

  • runtipi/user-config/2fauth/docker-compose.yml
    an specify:
version: "3.7"
services:
  2fauth:
    environment:
      - ASSET_URL=https://2fauth.${LOCAL_DOMAIN}
      - APP_URL=https://2fauth.${LOCAL_DOMAIN}

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

Successfully merging a pull request may close this issue.

2 participants