feat: add config files
This commit is contained in:
8
files/nginx/vault.netoik.io.conf
Normal file
8
files/nginx/vault.netoik.io.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name vault.netoik.io;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
}
|
||||
}
|
||||
3
files/systemd/vaultwarden.conf
Normal file
3
files/systemd/vaultwarden.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
Environment=
|
||||
Environment="ENV_FILE=/etc/vaultwarden/netoik_vaultwarden.cfg"
|
||||
52
files/vaultwarden/netoik_vaultwarden.cfg
Normal file
52
files/vaultwarden/netoik_vaultwarden.cfg
Normal 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
|
||||
Reference in New Issue
Block a user