feat: add config files
All checks were successful
Continuous Integration / lint_n_build (push) Successful in 22s
Continuous Delivery / build_n_upload (push) Successful in 25s

This commit is contained in:
2026-04-24 00:47:26 +02:00
parent c63737fb0d
commit f85133ced9
5 changed files with 103 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
server {
listen 443 ssl;
server_name vault.netoik.io;
location / {
proxy_pass http://127.0.0.1:8000;
}
}

View File

@@ -0,0 +1,3 @@
[Service]
Environment=
Environment="ENV_FILE=/etc/vaultwarden/netoik_vaultwarden.cfg"

View File

@@ -0,0 +1,52 @@
####################
### Data folders ###
####################
## Main data folder
DATA_FOLDER=/var/lib/vaultwarden
## Web vault settings
WEB_VAULT_FOLDER=/usr/share/vaultwarden-web
WEB_VAULT_ENABLED=true
#########################
### Database settings ###
#########################
## Database URL
## When using SQLite, this is the path to the DB file, default to %DATA_FOLDER%/db.sqlite3
# DATABASE_URL=data/db.sqlite3
## When using MySQL, specify an appropriate connection URI.
## Details: https://docs.diesel.rs/2.1.x/diesel/mysql/struct.MysqlConnection.html
# DATABASE_URL=mysql://user:password@host[:port]/database_name
## When using PostgreSQL, specify an appropriate connection URI (recommended)
## or keyword/value connection string.
## Details:
## - https://docs.diesel.rs/2.1.x/diesel/pg/struct.PgConnection.html
## - https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
DATABASE_URL=postgresql:///
########################
### General settings ###
########################
## Domain settings
## The domain must match the address from where you access the server
## It's recommended to configure this value, otherwise certain functionality might not work,
## like attachment downloads, email links and U2F.
## For U2F to work, the server must use HTTPS, you can use Let's Encrypt for free certs
## To use HTTPS, the recommended way is to put Vaultwarden behind a reverse proxy
## Details:
## - https://github.com/dani-garcia/vaultwarden/wiki/Enabling-HTTPS
## - https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples
## For development
# DOMAIN=http://localhost
## For public server
# DOMAIN=https://vw.domain.tld
## For public server (URL with port number)
# DOMAIN=https://vw.domain.tld:8443
## For public server (URL with path)
# DOMAIN=https://domain.tld/vw
DOMAIN=https://vault.netoik.io