summaryrefslogtreecommitdiff
path: root/templates/site.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-17 15:31:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-17 15:31:45 -0300
commit79658fbaa4f35fe4cdc44e0772a503abeb188dfb (patch)
tree3eb58eacf6c62bb7a11a254b6cac3a6f855d96c6 /templates/site.erb
parent683dbde79850db946078624cf8a07ec2c954701b (diff)
downloadpuppet-nginx-79658fbaa4f35fe4cdc44e0772a503abeb188dfb.tar.gz
puppet-nginx-79658fbaa4f35fe4cdc44e0772a503abeb188dfb.tar.bz2
Adds site templates
Diffstat (limited to 'templates/site.erb')
-rw-r--r--templates/site.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/site.erb b/templates/site.erb
new file mode 100644
index 0000000..15d1600
--- /dev/null
+++ b/templates/site.erb
@@ -0,0 +1,12 @@
+server {
+ listen 80;
+ server_name *.<%= name %> <%= name %>;
+
+ location /.well-known/acme-challenge {
+ root /var/spool/certbot/<%= name %>;
+ }
+
+ location / {
+ return 301 https://$host$request_uri;
+ }
+}