1
0
forked from infra/ansible

workadventure: Config upgrade for latest version

This commit is contained in:
Thomas Basler 2022-01-18 23:43:44 +01:00
parent 347ad26fb6
commit 9ea7156394
2 changed files with 6 additions and 5 deletions

View File

@ -38,7 +38,7 @@ server {
ssl_certificate /etc/nginx/ssl/{{ workadventure_domain }}.crt;
location / {
root /opt/workadventure/source/front/dist;
root /opt/workadventure/source/src/front/dist;
try_files $uri uri/ /index.html?$args;
}
}

View File

@ -2,6 +2,7 @@
Description=WorkAdventure service using docker compose
Requires=docker.service
After=docker.service
Before=nginx.service
[Service]
Type=simple
@ -15,13 +16,13 @@ TimeoutStartSec=1200
WorkingDirectory=/opt/workadventure/source/
# Make sure no old containers are running
ExecStartPre=/usr/bin/docker-compose -f docker-compose.bk.yaml down -v
ExecStartPre=/usr/bin/docker-compose down -v
# Compose up
ExecStart=/usr/bin/docker-compose -f docker-compose.bk.yaml up
ExecStart=/usr/bin/docker-compose up
# Compose down, remove containers and volumes
ExecStop=/usr/bin/docker-compose -f docker-compose.bk.yaml down -v
ExecStop=/usr/bin/docker-compose down -v
[Install]
WantedBy=multi-user.target