add warehost-client-web

This commit is contained in:
Martin Geno 2016-12-07 14:43:11 +01:00
parent 2be8028c5f
commit b8aacc4f3b
5 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,3 @@
warehost_webclient_domain: warehost.de
warehost_webclient_repo: git@dev.sum7.eu:sum7/warehost-client-web.git
warehost_webclient_version: master

View File

@ -0,0 +1,3 @@
---
- name: reload caddy
service: name=caddy state=reloaded

View File

@ -0,0 +1,7 @@
---
- name: Configurate caddy for warehost client web
template: src=caddy.conf dest=/etc/caddy/hosts/79-warehost_client_web.act owner={{http_usr}} mode=0644
notify: reload caddy
- name: Create domain folder for warehost client web
file: path=/srv/http/domain/{{warehost_webclient_domain}} state=directory mode=0755 owner={{http_usr}} group={{http_grp}}

View File

@ -0,0 +1,5 @@
http://{{warehost_webclient_domain}}, https://{{warehost_webclient_domain}} {
tls {{caddy_ssl_mail}}
gzip
root /srv/http/domain/{{warehost_webclient_domain}}
}

View File

@ -9,7 +9,7 @@ Type=oneshot
User=warehost
ExecStart=/usr/local/bin/warehost-host -c /etc/warehost/host.conf
PermissionsStartOnly=true
ExecStartPost=/usr/bin/systemctl reload {{warehost_host_web_type}}
ExecStartPost=/bin/systemctl reload {{warehost_host_web_type}}
[Install]
WantedBy=multi-user.target