home-server/roles/dmz_ihmgit_front/tasks/main.yml

31 lines
892 B
YAML

---
# The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: configure nginx for Gitea
copy:
content: |
location = /git {
rewrite ^ /git/ last;
}
location {{http_pfx_gitea}}/ {
proxy_pass http://unix:/run/shared_sockets/gitea:/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
dest: /etc/nginx/inc.d/gitea.https.inc
mode: 0440
owner: http
group: http
notify:
- restart nginx.service
### LOCAL COMMIT ⇒ ###
- name: commit local changes
include_role: name=etckeeper.inc allow_duplicates=true tasks_from=local.yml
vars:
msg: Gitea
### ⇐ LOCAL COMMIT ###
- meta: flush_handlers