[galene] Gardening

main
_shirenn 2022-11-30 18:36:52 +01:00
parent 7222edecc5
commit 9024a402a9
4 changed files with 17 additions and 8 deletions

View File

@ -11,7 +11,10 @@ service_nginx:
params:
- "include /etc/nginx/snippets/options-proxypass.conf"
- "proxy_pass http://localhost:8443"
- filter: "/auth"
params:
- "include /etc/nginx/snippets/options-proxypass.conf"
- "proxy_pass http://localhost:1234"
- filter: "~ ^/(\\w+)/$"
params:
- "return 302 https://$host/group/$1"
@ -20,11 +23,17 @@ service_nginx:
server_name:
- "neree.crans.org"
locations:
- filter: "/"
- filter: "~ ^(/ws|.*\\.json)$"
params:
- "include /etc/nginx/snippets/options-proxypass.conf"
- "proxy_pass http://localhost:8443"
- filter: "~ ^/(\\w+)/$"
params:
- "return 302 https://$host/group/$1"
- filter: "/"
params:
- "include /etc/nginx/snippets/options-proxypass.conf"
- "proxy_pass http://localhost:8444"
glob_galene:
version: 0.6.1

View File

@ -1,5 +1,5 @@
---
- name: Restart galène
- name: systemctl restart galene.service
systemd:
name: galene
state: restarted

View File

@ -29,7 +29,7 @@
git:
repo: https://github.com/jech/galene.git
dest: /var/local/galene
version: galene-0.3.5
version: galene-{{ galene.version }}
register: git_result
become_user: galene
@ -40,7 +40,7 @@
chdir: /var/local/galene
environment:
CGO_ENABLED: 0
notify: Restart galène
notify: systemctl restart galene.service
- name: Make Galène configuration directory
file:
@ -70,7 +70,7 @@
owner: root
group: root
mode: 0644
notify: Restart galène
notify: systemctl restart galene.service
- name: Enable systemd unit
systemd:

View File

@ -9,7 +9,7 @@ Type=simple
WorkingDirectory=/var/local/galene
User=galene
Group=galene
ExecStart=/var/local/galene/galene --insecure --static /var/www/galene-static/static/
ExecStart=/var/local/galene/galene --insecure
LimitNOFILE=65536
[Install]