Merge pull request 'Service file update with the Postgresql service' (#6) from development into main
Reviewed-on: http://gitea.tomsitcafe.com:3000/iron/ds-gitea/pulls/6
This commit is contained in:
@@ -20,7 +20,7 @@ Use the =ds-posgresql= to configure the database.
|
||||
4. Create the required directory structure
|
||||
5. Wait for the secret creation and storage in SOPS - if secrets are not present
|
||||
6. Deploy the Gitea configuration
|
||||
7. Deploy the Gitea service file
|
||||
7. Deploy the Gitea systemd service file (With Postgresql support if the backend is used)
|
||||
8. Enable and start the service
|
||||
|
||||
* Defaults
|
||||
@@ -28,6 +28,8 @@ Use the =ds-posgresql= to configure the database.
|
||||
#+begin_src yaml
|
||||
gitea_user: git
|
||||
gitea_group: git
|
||||
gitea_http_port: 3000
|
||||
gitea_ssh_port: 22
|
||||
#+end_src
|
||||
|
||||
* Requirements
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
---
|
||||
gitea_user: git
|
||||
gitea_group: git
|
||||
gitea_http_port: 3000
|
||||
gitea_ssh_port: 22
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=network.target
|
||||
{% if gitea_database_server | default('') == "postgresql" %}
|
||||
Wants=postgresql.service
|
||||
After=postgresql.service
|
||||
{% endif %}
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
|
||||
Reference in New Issue
Block a user