Update backup service and forgejo
This commit is contained in:
parent
5ff07b77b4
commit
a1552c3662
2 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Autostart several tools and services
|
||||||
|
StartLimitIntervalSec=7200
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart={{ service_path }}/backup.sh
|
ExecStart={{ service_path }}/backup.sh
|
||||||
WorkingDirectory={{ service_path }}
|
WorkingDirectory={{ service_path }}
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=15min
|
||||||
|
|
|
@ -26,7 +26,7 @@ forgejo_env:
|
||||||
FORGEJO__cors__ENABLED: true
|
FORGEJO__cors__ENABLED: true
|
||||||
FORGEJO__cors__SCHEME: https
|
FORGEJO__cors__SCHEME: https
|
||||||
|
|
||||||
FORGEJO__ui__DEFAULT_THEME: arc-green
|
FORGEJO__ui__DEFAULT_THEME: forgejo-dark
|
||||||
|
|
||||||
FORGEJO__server__DOMAIN: "{{ svc.domain }}"
|
FORGEJO__server__DOMAIN: "{{ svc.domain }}"
|
||||||
FORGEJO__server__SSH_DOMAIN: "{{ svc.domain }}"
|
FORGEJO__server__SSH_DOMAIN: "{{ svc.domain }}"
|
||||||
|
@ -61,6 +61,8 @@ forgejo_env:
|
||||||
|
|
||||||
FORGEJO__picture__DISABLE_GRAVATAR: true
|
FORGEJO__picture__DISABLE_GRAVATAR: true
|
||||||
|
|
||||||
|
FORGEJO__attachment__MAX_FILES: 10
|
||||||
|
|
||||||
FORGEJO__oauth2__JWT_SECRET: "{{ vault_forgejo.oauth2_jwt_secret }}"
|
FORGEJO__oauth2__JWT_SECRET: "{{ vault_forgejo.oauth2_jwt_secret }}"
|
||||||
|
|
||||||
FORGEJO__metrics__ENABLED: true
|
FORGEJO__metrics__ENABLED: true
|
||||||
|
@ -81,7 +83,7 @@ forgejo_env:
|
||||||
|
|
||||||
forgejo_compose:
|
forgejo_compose:
|
||||||
watchtower: true
|
watchtower: true
|
||||||
image: codeberg.org/forgejo/forgejo:1.21
|
image: codeberg.org/forgejo/forgejo:7.0
|
||||||
volumes:
|
volumes:
|
||||||
- data:/data
|
- data:/data
|
||||||
- ./templates:/data/gitea/templates
|
- ./templates:/data/gitea/templates
|
||||||
|
|
Reference in a new issue