Verified Commit be8ff7e5 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Rework the variables so we get rid of the alternate_domains and...

roles/archweb: Rework the variables so we get rid of the alternate_domains and create a new dict for custom ngnix templates

Removed the alternate domains variable and now we use the dict directly inside the nginx template. Also create a dict containing
the domains and custom templates for each of them. Right now we only have a custom template for ipxe.archlinux.org.
parent 618381cd
---
archweb_dir: '/srv/http/archweb'
archweb_domain: 'www.archlinux.org'
archweb_alternate_domains: ['archlinux.org', 'master-key.archlinux.org', 'dev.archlinux.org', 'packages.archlinux.org', 'ipxe.archlinux.org']
archweb_domains_redirects:
'archlinux.org': '$request_uri'
'master-key.archlinux.org': '/master-keys'
'dev.archlinux.org': '/'
'packages.archlinux.org': '/packages$request_uri'
'ipxe.archlinux.org': '$request_uri'
archweb_domains_templates:
'ipxe.archlinux.org': 'ipxe.archlinux.org.j2'
archweb_nginx_conf: '/etc/nginx/nginx.d/archweb.conf'
archweb_repository: 'https://github.com/archlinux/archweb.git'
archweb_version: release_2019-12-18
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment