Migrate 9iron.club and www.9iron.club to web1.desu.ltd

This commit is contained in:
Salt 2020-12-30 15:31:44 -06:00
parent 78db2b0cc1
commit 7689c42e51

View File

@ -9,6 +9,7 @@
backup_s3backup_list_extra:
- /var/lib/gitea
- /var/www/html/nextcloud
- /var/www/www.9iron.club/files
become: yes
tags: [ backup ]
- role: apache
@ -22,6 +23,7 @@
- proxy_http.load
- rewrite.load
apache_vhosts:
# desu.ltd
- servername: nc.desu.ltd
extra_parameters: |
Redirect permanent / https://nc.desu.ltd
@ -31,7 +33,15 @@
- servername: git.desu.ltd
extra_parameters: |
Redirect permanent / https://git.desu.ltd
# 9iron.club
- servername: 9iron.club
extra_parameters: |
Redirect permanent / https://www.9iron.club
- servername: www.9iron.club
extra_parameters: |
Redirect permanent / https://www.9iron.club
apache_vhosts_ssl:
# desu.ltd
- servername: nc.desu.ltd
extra_parameters: |
Header always set Strict-Transport-Security "max-age=31536000"
@ -52,6 +62,18 @@
certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem
certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem
certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem
# 9iron.club
- servername: 9iron.club
extra_parameters: |
Redirect permanent / https://www.9iron.club
certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem
certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem
certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem
- servername: www.9iron.club
documentroot: /var/www/www.9iron.club
certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem
certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem
certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem
become: yes
tags: [ web, apache ]
- role: certbot
@ -67,6 +89,8 @@
- git.desu.ltd
- nc.desu.ltd
- web1.desu.ltd
- 9iron.club
- www.9iron.club
become: yes
tags: [ web, certbot ]
- role: php
@ -92,6 +116,8 @@
git_repos:
- repo: https://git.9iron.club/salt/desultd
dest: /var/www/desu.ltd
- repo: https://git.9iron.club/salt/www2
dest: /var/www/www.9iron.club
become: yes
tags: [ web, git ]
- role: nextcloud