retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.67k stars 371 forks source link

Admin profile shown after login #574

Open cairoapcampos opened 1 year ago

cairoapcampos commented 1 year ago

By configuring WebVirtCloud in docker, I was able to add the compute node without any issues. However, after changing the admin user's password, this profile is shown every time after login.

What configuration should I do so that it is no longer shown after login?

I remove screen data because of the image being shared here.

profile

catborise commented 1 year ago

yes it does. but because of link redirection. to fix refresh page. then enter full url like: http://localhost:8000

cairoapcampos commented 1 year ago

@catborise I'm trying to use WebVirtCloud in production. I configured SSL/TLS. SSL/TLS is defined on the Nginx reverse proxy. This way:

User access: https://webvirtcloud.mydomain.com -> Proxy redirect: http://IP:8085

docker-compose.yml:

nginx webvirtcloud.conf:

proxy_pass http://IP:8085;

Access via domain name worked and I can access the VM consoles because port 443 was defined.

settings.py:

# Websock port
WS_PORT = 6080

# Websock host
WS_HOST = "0.0.0.0"

# Websock public port - 80 or 443 if reverse-proxy, else 6080
WS_PUBLIC_PORT = 433

# Websock public host
WS_PUBLIC_HOST = None

# Websock public path
WS_PUBLIC_PATH = "/novncd/"

# Websock Certificate for SSL
WS_CERT = None

SOCKETIO_PORT = 6081
SOCKETIO_HOST = '0.0.0.0'

# Socketio public host
SOCKETIO_PUBLIC_HOST = None

# Socketio public port - 80 or 443 if reverse-proxy, else 6081
SOCKETIO_PUBLIC_PORT = 6081

I don't know where to set port 8000. Maybe I'm confusing the ports usage.

catborise commented 1 year ago

sorry for late answer. can you please add

LOGIN_REDIRECT_URL="/instances/"

to settings.py file and restart webvirtcloud app