Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/templates/site.erb

Issue 5728306397708288: Added definition for eyeo.com webserver (Closed)
Patch Set: Created Dec. 5, 2013, 9:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/web/manifests/server.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/site.erb
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/web/templates/site.erb
@@ -0,0 +1,24 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name '<%= vhost %>';
+
+ location / {
+ rewrite (.*) https://<%= vhost %>$1 permanent;
+ }
+}
+
+server {
+ listen 443 ssl default_server;
+ listen [::]:443 ssl default_server;
+ ssl_certificate sites-available/adblockplus.org_sslcert.pem;
+ ssl_certificate_key sites-available/adblockplus.org_sslcert.key;
+
+ server_name '<%= vhost %>';
+
+ expires 1d;
+
+ root /var/www/<%= vhost %>;
+ index index;
+ default_type text/html;
+}
« no previous file with comments | « modules/web/manifests/server.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld