diff options
author | jaseg <code@jaseg.net> | 2019-06-26 16:41:45 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2019-06-26 16:41:45 +0900 |
commit | 8cb082a42d71a1e86a138eb58106d636e7c6d191 (patch) | |
tree | 8d4da453893c338dcd19671596c95100da4c83ce /gerboweb/deploy/setup_webserver.yml | |
parent | 20f0df3892aea77ff17aed032aba7d9207fd85ae (diff) | |
download | gerbolyze-8cb082a42d71a1e86a138eb58106d636e7c6d191.tar.gz gerbolyze-8cb082a42d71a1e86a138eb58106d636e7c6d191.tar.bz2 gerbolyze-8cb082a42d71a1e86a138eb58106d636e7c6d191.zip |
Misc changes. Move up to fedora 30, add gerbolyze, secure download
Diffstat (limited to 'gerboweb/deploy/setup_webserver.yml')
-rw-r--r-- | gerboweb/deploy/setup_webserver.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gerboweb/deploy/setup_webserver.yml b/gerboweb/deploy/setup_webserver.yml index 7dc65c5..ea821d8 100644 --- a/gerboweb/deploy/setup_webserver.yml +++ b/gerboweb/deploy/setup_webserver.yml @@ -9,6 +9,14 @@ groups: uwsgi append: yes +- name: Create blog.jaseg.net content dir + file: + path: /var/www/blog.jaseg.net + state: directory + owner: nginx + group: nginx + mode: 0550 + - name: Copy uwsgi systemd socket config copy: src: uwsgi-app@.socket @@ -30,11 +38,16 @@ enabled: yes state: restarted -- name: Create letsencrypt certificate +- name: Create letsencrypt certificate for gerbolyze.jaseg.net command: certbot --nginx certonly -d gerbolyze.jaseg.net -n --agree-tos --email gerboweb@jaseg.net args: creates: /etc/letsencrypt/live/gerbolyze.jaseg.net/fullchain.pem +- name: Create letsencrypt certificate for blog.jaseg.net + command: certbot --nginx certonly -d blog.jaseg.net -n --agree-tos --email blog@jaseg.net + args: + creates: /etc/letsencrypt/live/blog.jaseg.net/fullchain.pem + - name: Copy final nginx config copy: src: nginx.conf |