2Fauth LXC: change IP/domain with Nginx Proxy Manager #1109
-
I just switched to the 2Fauth-LXC and would love to change the local IP to a local domain, as I did before with the docker variant. Unfortunately this isn't working in the LXC (changed here: /opt/2fauth/docker/docker-compose.yml) Keep up the great work! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
After you edit it, did you rebuild the app? You also mentioned Nginx Proxy Manager. What happens when you add the (sub-)domain there and point it to the IP and Port of the app? Some apps do not care about the used hostname, hopefully also the case here. |
Beta Was this translation helpful? Give feedback.
-
Hey, I also get this issue, running LXC and behind Nginx Proxy Manager - getting gateway error no matter the settings i use in the .env; Attempted to make some changes to nginx instance also, but no joy and waited to see if anyone else had this issue/if a fix discussed. Happy to attempt any suggestions and post results |
Beta Was this translation helpful? Give feedback.
-
OK, this app gets an official DO NOT USE from me. Anyway, I found the problem and have a fix, but you will need to change this every time you change the URL.
Now you should be able to access 2FAuth on the URL. |
Beta Was this translation helpful? Give feedback.
-
In your NPM proxy for 2FA, may need make sure you have something like this in the advanced section
|
Beta Was this translation helpful? Give feedback.
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.
TRUSTED_PROXIES=
(ONLY for testing you can use*
but change before you start using it)cd
to the root of the app (/opt/2fauth/)php artisan config:clear