Skip to content

2Fauth LXC: change IP/domain with Nginx Proxy Manager #1109

Closed Answered by Mellowlynx
Ullulaki asked this question in Q&A
Discussion options

You must be logged in to vote

OK, this app gets an official DO NOT USE from me.
It's not optimized to work on bare-metal and will require more knowledge than should be needed.
I think for the app, Docker is a better way for most users.

Anyway, I found the problem and have a fix, but you will need to change this every time you change the URL.

  • Make sure the APP_URL= is set to the full URL that you will use (https://2fa.example.tld)
  • Do not set ASSET_URL=, leave it commanded out.
  • Set the IP of your NPM IP after TRUSTED_PROXIES= (ONLY for testing you can use * but change before you start using it)
  • cd to the root of the app (/opt/2fauth/)
  • Execute php artisan config:clear
  • Update the 2fauth.conf file within nginx. (nano /etc…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Ullulaki
Comment options

@Mellowlynx
Comment options

@Ullulaki
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Mellowlynx
Comment options

You must be logged in to vote
1 reply
@Mellowlynx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants