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

Unified Diff: modules/notificationserver/files/notification.adblockplus.org

Issue 11166107: Set up notification server (Closed)
Patch Set: Created July 22, 2013, 10:11 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
Index: modules/notificationserver/files/notification.adblockplus.org
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/notificationserver/files/notification.adblockplus.org
@@ -0,0 +1,31 @@
+# notification.adblockplus.org
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name notification.adblockplus.org;
+ location / {
+ rewrite (.*) https://notification.adblockplus.org$1 permanent;
+ }
+}
+server {
+ listen 443 ssl default_server;
+ listen [::]:443 ssl default_server;
+ 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 {
+ root html;
+ }
+
+ location /.hg {
+ internal;
+ }
+
+ access_log /var/log/nginx/access_log_notification main;
+ keepalive_timeout 0;
+ root /var/www/notification;
+}

Powered by Google App Engine
This is Rietveld