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:
DeadSwitch
2026-02-10 10:18:17 +01:00
3 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -1,3 +1,5 @@
---
gitea_user: git
gitea_group: git
gitea_http_port: 3000
gitea_ssh_port: 22

View File

@@ -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