Hi!
I set up a self-hosted instance.
In /opt/bitwarden/bwdata/config.yml
, I set the following values:
# Auto-generate the `./nginx/default.conf` file.
# WARNING: Disabling generated config files can break future updates. You will be
# responsible for maintaining this config file.
# Template: https://github.com/bitwarden/server/blob/master/util/Setup/Templates/NginxConfig.hbs
generate_nginx_config: true
#
# Docker compose file port mapping for HTTP. Leave empty to remove the port mapping.
# Learn more: https://docs.docker.com/compose/compose-file/#ports
http_port: 8089
#
# Docker compose file port mapping for HTTPS. Leave empty to remove the port mapping.
# Learn more: https://docs.docker.com/compose/compose-file/#ports
https_port: 9443
#
I also set an NGINX file because there was a conflict with port 443, and its content is the following:
server {
server_name bw.nicfab.eu;
location / {
proxy_pass http://127.0.0.1:8089;
}
client_max_body_size 20G;
listen [::]:443 ssl http2;
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/bw.nicfab.eu/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/bw.nicfab.eu/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = bw.nicfab.eu) {
return 301 https://$host$request_uri;
}
server_name bw.nicfab.eu;
listen [::]:80;
return 404;
}
server {
if ($host = bw.nicfab.eu) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name bw.nicfab.eu;
listen 80;
return 404; # managed by Certbot
}
It works, but according to the information published here https://bitwarden.com/help/admin-portal/#configure-users-for-the-admin-portal, I cannot access because I see the URL https://127.0.0.1/admin/login?returnUrl=%2Fadmin
I suppose I have to configure NGINX, but I don’t know how.
Is there anyone who can help me?