Closed puerro closed 3 weeks ago
Hi, What do you mean by:
it doesn't work
Hi, What do you mean by:
it doesn't work
I can't install with docker.
STATUS
Restarting (1) 1 second ago
docker ps always show restarting, reboot also, and 192.168.1.2:8001 webpage show error.
-v ~/.2fauth:/2fauth \
Is /.2fauth
instead of ./2fauth
voluntary?
My bad. I didn't see the docs.
Use:
mkdir .2fauth
chown 1000:1000 .2fauth
chmod 700 .2fauth
It works.
docker ps show running, reboot also.
When visit 192.168.1.2:8001, the webpage is blank, the webpage title show 2FAuth
.
I need add set -e ASSET_URL=http://localhost:8001 \
?
The most important is APP_URL
, it must reflect the url in the address bar, so APP_URL=http://localhost:8001
, or APP_URL=http://192.168.1.2:8001
if localhost
is not bound to 192.168.1.2
. Do not forget to use https
if you have such a connection.
You have to set ASSET_URL
if and only if you serve js/css assets from another server, otherwise it will fall back to the APP_URL
value.
root@ubuntu:~# cat /etc/hosts
127.0.0.1 localhost
::1 localhost
Huh... 192.168.1.2 is a DHCP ip, actually the ubuntu server is removable, I don't want to change it become static ip. And the DHCP ip will change, that means not support visit DHCP ip in the LAN?
How do you reach your server if its ip address changes all the time without a bound domain?! I'm not an ops specialist, so maybe I'm missing something, but to me it doesn't make sense.
My main router 192.168.1.1, also DHCP server, that have all DHCP ip in the LAN. Of course I can visit main router get DHCP ip at home, but may not if I move the ubuntu server.
I have to set a static ip APP_URL=http://192.168.1.2:8001
, it works perfectly.
Ok 👍🏻 Issue closed as it works, feel free to reopen it if necessary.
My main router ip is 192.168.1.1 I get a ubuntu server (headless no Desktop) is DHCP ip (192.168.1.2), not static ip Docker installed in this ubuntu server Port 8000 used by portainer-ce, so I have to use 8001
I want use my PC (192.168.1.*) access 192.168.1.2:8001, it doesn't work
What should I do?