refactor: .env files
This commit is contained in:
parent
60bf7df899
commit
7ede88c0d7
1
core/.gitignore
vendored
Normal file
1
core/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.env
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
local_certs
|
#local_certs
|
||||||
default_bind 0.0.0.0
|
default_bind 0.0.0.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ outils.chatons.duckdns.org {
|
||||||
}
|
}
|
||||||
|
|
||||||
basic_auth /secretpage {
|
basic_auth /secretpage {
|
||||||
# username "towel" password "poisson"
|
|
||||||
towel $2a$14$/cfdN3/kWYwiw/OeAtLcjOxj/NFZa3gUxqePMSoNh1VmoDzS1BP5S
|
towel $2a$14$/cfdN3/kWYwiw/OeAtLcjOxj/NFZa3gUxqePMSoNh1VmoDzS1BP5S
|
||||||
}
|
}
|
||||||
handle_path /secretpage {
|
handle_path /secretpage {
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@ services:
|
||||||
PGID: "1000"
|
PGID: "1000"
|
||||||
TZ: "Europe/Paris"
|
TZ: "Europe/Paris"
|
||||||
SUBDOMAINS: "chatons"
|
SUBDOMAINS: "chatons"
|
||||||
TOKEN: "7b3c8e72-17b9-4b80-a81b-628d1e74127e"
|
TOKEN: "${DUCKDNS_TOKEN}"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ services:
|
||||||
GITEA__database__HOST: gitea-postgres:5432
|
GITEA__database__HOST: gitea-postgres:5432
|
||||||
GITEA__database__NAME: gitea
|
GITEA__database__NAME: gitea
|
||||||
GITEA__database__USER: gitea
|
GITEA__database__USER: gitea
|
||||||
GITEA__database__PASSWD: gitea
|
GITEA__database__PASSWD: ${GITEA_DB_PASSWD}
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
@ -30,7 +30,7 @@ services:
|
||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=gitea
|
- POSTGRES_USER=gitea
|
||||||
- POSTGRES_PASSWORD=gitea
|
- POSTGRES_PASSWORD=${GITEA_POSTGRES_PASSWORD}
|
||||||
- POSTGRES_DB=gitea
|
- POSTGRES_DB=gitea
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,11 @@ services:
|
||||||
KC_DB: postgres
|
KC_DB: postgres
|
||||||
KC_DB_URL: jdbc:postgresql://postgres:3212/keycloak
|
KC_DB_URL: jdbc:postgresql://postgres:3212/keycloak
|
||||||
KC_DB_USERNAME: bapasqui
|
KC_DB_USERNAME: bapasqui
|
||||||
KC_DB_PASSWORD: password
|
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
|
||||||
KC_BOOTSTRAP_ADMIN_USERNAME: admin
|
KC_BOOTSTRAP_ADMIN_USERNAME: ${KC_BOOTSTRAP_ADMIN_USERNAME}
|
||||||
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
|
KC_BOOTSTRAP_ADMIN_PASSWORD: ${KC_BOOTSTRAP_ADMIN_PASSWORD}
|
||||||
KC_HOSTNAME_PORT: 8081
|
KC_HOSTNAME: https://keycloak.chatons.duckdns.org
|
||||||
KC_PROXY: edge
|
command:
|
||||||
command:
|
|
||||||
- start-dev
|
- start-dev
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ services:
|
||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: bapasqui
|
POSTGRES_USER: bapasqui
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
PGPORT: 3212
|
PGPORT: 3212
|
||||||
POSTGRES_DB: keycloak
|
POSTGRES_DB: keycloak
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
11
core/tools/push-git.sh
Normal file
11
core/tools/push-git.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd ../
|
||||||
|
cp -r * core/
|
||||||
|
cd core
|
||||||
|
git init
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git commit -m " Update files to the repo"
|
||||||
|
git remote add origin https://vogsphere.chatons.duckdns.org/marvin/core.git
|
||||||
|
git push -u origin main
|
||||||
12
startup
12
startup
|
|
@ -39,18 +39,18 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
clean)
|
clean)
|
||||||
just clean duckdns
|
just clean duckdns
|
||||||
just clean caddy
|
#just clean caddy
|
||||||
just clean doh
|
just clean doh
|
||||||
just clean postgresql
|
just clean postgresql
|
||||||
just clean keycloak
|
#just clean keycloak
|
||||||
just clean git
|
#just clean git
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
just re duckdns
|
just re duckdns
|
||||||
just re caddy
|
#just re caddy
|
||||||
just re doh
|
just re doh
|
||||||
just re postgresql
|
just re postgresql
|
||||||
just re git
|
#just re git
|
||||||
just re keycloak
|
#just re keycloak
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
Loading…
Reference in a new issue