guides:ubnetdef_new_domain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guides:ubnetdef_new_domain [2017/03/21 04:31]
jamesdro
guides:ubnetdef_new_domain [2019/03/04 02:51] (current)
sjames5 [James, what are these dank scripts you wrote?] Replace certbot with certbot-auto
Line 13: Line 13:
 Why thank you for asking! Here is the latest version of the create scripts Why thank you for asking! Here is the latest version of the create scripts
  
-```sh +<file bash create.sh>
-#​filename: ​create.sh+
 #!/bin/bash #!/bin/bash
  
Line 35: Line 34:
  
 # Grab a SSL cert # Grab a SSL cert
-certbot certonly --webroot -w /​web/​$HOSTNAME/​public -d $HOSTNAME+certbot-auto certonly --webroot -w /​web/​$HOSTNAME/​public -d $HOSTNAME
  
 # Add SSL config, replace some variables # Add SSL config, replace some variables
Line 48: Line 47:
 # We're done # We're done
 systemctl reload nginx systemctl reload nginx
-```+</​file>​
  
-```conf +<​file ​conf nginx.tpl>
-#​filename: ​nginx.tpl+
 server { server {
  listen 80;  listen 80;
Line 61: Line 59:
 root /​web/#​HOSTNAME#/​public;​ #temp root /​web/#​HOSTNAME#/​public;​ #temp
 } }
-```+</​file>​
  
-```conf +<​file ​conf nginx_ssl.tpl>
-#​filename: ​nginx_ssl.tpl+
 server { server {
  listen 443 ssl http2;  listen 443 ssl http2;
Line 90: Line 87:
  }  }
 } }
-```+</​file>​
  • guides/ubnetdef_new_domain.1490070697.txt.gz
  • Last modified: 2017/03/21 04:31
  • by jamesdro