Skip to content
Snippets Groups Projects
Commit 3821f12a authored by void's avatar void
Browse files

minor changes

parent 9fa95a0c
No related branches found
No related tags found
No related merge requests found
service rsyslog restart
cd /opt/warpinfra;
python manage.py makemigrations
......
......@@ -24,11 +24,11 @@
- name: start docker image
docker:
name: warpinfra
image: warpinfra/latest
image: warpinfra
state: reloaded
restart_policy: always
ports:
- 127.0.0.1:42001:8000
- 127.0.0.1:42002:8000
volumes:
- /srv/warpinfra:/opt/warpinfra
upstream django {
server 127.0.0.1:42001; # for a file socket
server 127.0.0.1:42002; # for a file socket
}
#server {
# listen 80;
......@@ -23,11 +23,11 @@ server {
# Django media
location /media {
alias /srv/warpinfra/media; # your Django project's media files - amend as required
alias /srv/warpinfra/web/media; # your Django project's media files - amend as required
}
location /static {
alias /srv/warpinfra/static; # your Django project's static files - amend as required
alias /srv/warpinfra/web/static; # your Django project's static files - amend as required
}
# Finally, send all non-media requests to the Django server.
......
......@@ -42,15 +42,14 @@
- name: Activate mattermost config
file: src=/etc/nginx/sites-available/mattermost dest=/etc/nginx/sites-enabled/mattermost state=link
- name: Konfig-Datei warpinfra kopieren
- name: Konfig-Datei warpinfra kopieren
copy: src=warpinfra dest=/etc/nginx/sites-available/warpinfra
notify: restart nginx
- name: Activate warpinfra config
file: src=/etc/nginx/sites-available/warpinfra dest=/etc/nginx/sites-enabled/warpinfra state=link
- name: Cronjob für Zertifikatserneuerung
cron: name="simp_le" weekday="2" hour="20" minute="0" job="cd /etc/ssl && PATH=/usr/src/simp_le/venv/bin:/usr/sbin:/usr/bin:/sbin:/bin simp_le --email info@warpzone.ms -f account_key.json -f key.pem -f fullchain.pem -d wz.dyhost.de:/var/www/html -d gitlab.warpzone.ms:/var/www/html -d mattermost.warpzone.ms:/var/www/html && systemctl reload nginx"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment