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. 4, 2013, 3:58 p.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
« modules/web/manifests/server.pp ('K') | « 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;
+}
« modules/web/manifests/server.pp ('K') | « modules/web/manifests/server.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld