Add .envrc.sample, remove helpers.sh

This commit is contained in:
3wc 2020-09-07 20:02:50 +02:00
parent d95ecfed86
commit 993887bdda
2 changed files with 12 additions and 6 deletions

12
.envrc.sample Normal file
View File

@ -0,0 +1,12 @@
export DOMAIN=wiki.example.com
export STACK_NAME=example_wiki
export LETS_ENCRYPT_ENV=production
export MEDIAWIKI_SITENAME="Example Wikia"
export MEDIAWIKI_SITENAMESPACE="Example_Wiki"
export MEDIAWIKI_EMAIL_CONTACT="info@wiki.example.com"
export MEDIAWIKI_EMAIL_FROM="wiki@wiki.example.com"
export DB_ROOT_PASSWD_VERSION=v1
export DB_PASSWD_VERSION=v1

View File

@ -1,6 +0,0 @@
#!/bin/bash
create-secrets () {
pwgen -n 32 1 | docker secret create "${STACK_NAME}_db_root_passwd_${DB_ROOT_PASSWD_VERSION}" -
pwgen -n 32 1 | docker secret create "${STACK_NAME}_db_passwd_${DB_PASSWD_VERSION}" -
}