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; ssl_certificate /etc/nginx/ssl/{{ workadventure_domain }}.crt;
location / { location / {
root /opt/workadventure/source/front/dist; root /opt/workadventure/source/src/front/dist;
try_files $uri uri/ /index.html?$args; try_files $uri uri/ /index.html?$args;
} }
} }

View File

@ -2,6 +2,7 @@
Description=WorkAdventure service using docker compose Description=WorkAdventure service using docker compose
Requires=docker.service Requires=docker.service
After=docker.service After=docker.service
Before=nginx.service
[Service] [Service]
Type=simple Type=simple
@ -15,13 +16,13 @@ TimeoutStartSec=1200
WorkingDirectory=/opt/workadventure/source/ WorkingDirectory=/opt/workadventure/source/
# Make sure no old containers are running # 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 # 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 # 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target