8 changed files with 72 additions and 43 deletions
@ -0,0 +1,14 @@ |
|||
[Unit] |
|||
Description=Load/Dump database on start/stop |
|||
After=postgresql.service |
|||
Requires=postgresql.service |
|||
|
|||
[Service] |
|||
Type=oneshot |
|||
RemainAfterExit=yes |
|||
EnvironmentFile=/etc/environment |
|||
ExecStart=/bin/bash -c "db-load /vol/data/sql/$DBNAME-updown.sql" |
|||
ExecStop=/bin/bash -c "db-dump /vol/data/sql/$DBNAME-updown.sql" |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
@ -0,0 +1,8 @@ |
|||
[DEFAULT] |
|||
APP_NAME = My Title Page Name |
|||
|
|||
[server] |
|||
DOMAIN = git.example.com |
|||
ROOT_URL = https://git.example.com/ |
|||
HTTP_PORT = 80 |
|||
SSH_PORT = 22 |
@ -0,0 +1,10 @@ |
|||
[oauth2] |
|||
JWT_SECRET = $(gitea generate secret JWT_SECRET) |
|||
|
|||
[security] |
|||
INTERNAL_TOKEN = $(gitea generate secret INTERNAL_TOKEN) |
|||
SECRET_KEY = $(gitea generate secret SECRET_KEY) |
|||
INSTALL_LOCK = true |
|||
|
|||
[server] |
|||
LFS_JWT_SECRET = $(gitea generate secret JWT_SECRET) |
Loading…
Reference in new issue