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

Unified Diff: modules/notificationserver/templates/notification.adblockplus.org.erb

Issue 5302563972841472: Merge filter and notification servers, have both tasks run on the same servers (Closed)
Patch Set: Stopped misusing is_default parameter Created Jan. 30, 2014, 2:10 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
Index: modules/notificationserver/templates/notification.adblockplus.org.erb
===================================================================
rename from modules/notificationserver/files/notification.adblockplus.org
rename to modules/notificationserver/templates/notification.adblockplus.org.erb
--- a/modules/notificationserver/files/notification.adblockplus.org
+++ b/modules/notificationserver/templates/notification.adblockplus.org.erb
@@ -1,20 +1,32 @@
# notification.adblockplus.org
server {
- listen 80 default_server;
- listen [::]:80 default_server;
+ <% if is_default %>
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ <% else %>
+ listen 80;
+ listen [::]:80;
+ <% end %>
+
server_name notification.adblockplus.org;
location / {
rewrite (.*) https://notification.adblockplus.org$1 permanent;
}
}
server {
- listen 443 ssl default_server;
- listen [::]:443 ssl default_server;
+ <% if is_default %>
+ listen 443 ssl default_server;
+ listen [::]:443 ssl default_server;
+ <% else %>
+ listen 443 ssl;
+ listen [::]:443 ssl;
+ <% end %>
+
server_name notification.adblockplus.org;
ssl_certificate sites-available/adblockplus.org_sslcert.pem;
ssl_certificate_key sites-available/adblockplus.org_sslcert.key;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {

Powered by Google App Engine
This is Rietveld