Skip to content
Snippets Groups Projects
Commit 98007180 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

archweb: deploy retro pages

parent 9bebab21
No related branches found
No related tags found
No related merge requests found
......@@ -36,3 +36,6 @@ archweb_db_dbscripts_table_objs: 'mirrors_mirror,mirrors_mirrorrsync'
archweb_db_backup_user: 'archweb_backup'
archweb_db_backup_table_objs: 'ALL_IN_SCHEMA'
archweb_db_backup_sequence_objs: 'ALL_IN_SCHEMA'
archweb_retro_repository: 'https://git.archlinux.org/archweb-retro.git'
archweb_retro_dir: '/srv/http/archweb-retro'
......@@ -268,3 +268,15 @@
- name: start and enable archweb dump donor timer
service: name="archweb-dump_donor_mail.timer" enabled=yes state=started
when: archweb_donor_import
- name: create retro dir
file: state=directory owner=archweb group=archweb path="{{ archweb_retro_dir }}"
when: archweb_site
- name: clone archweb-retro repo
git: >
repo={{ archweb_retro_repository }}
dest="{{ archweb_retro_dir }}"
become: true
become_user: archweb
when: archweb_site
......@@ -139,6 +139,10 @@ server {
alias {{ archweb_dir }}/media/img;
}
location /retro {
alias {{ archweb_retro_dir }};
}
location / {
access_log /var/log/nginx/{{ archweb_domain }}/access.log main;
include uwsgi_params;
......
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