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

Unified Diff: modules/statsmaster/files/stats.adblockplus.org

Issue 11464069: Set up statistics master server (Closed)
Patch Set: Created Aug. 23, 2013, 3:47 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/statsmaster/files/stats.adblockplus.org
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/statsmaster/files/stats.adblockplus.org
@@ -0,0 +1,43 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name stats.adblockplus.org;
+ location / {
+ rewrite (.*) https://stats.adblockplus.org$1 permanent;
+ }
+}
+
+server {
+ listen 443 ssl default_server;
+ listen [::]:443 ssl default_server;
+ server_name stats.adblockplus.org;
+ ssl_certificate sites-available/adblockplus.org_sslcert.pem;
+ ssl_certificate_key sites-available/adblockplus.org_sslcert.key;
+
+ error_page 500 502 503 504 /50x.html;
+ location = /50x.html {
+ root html;
+ }
+
+ access_log /var/log/nginx/access_log_stats main;
+ keepalive_timeout 0;
+ root /var/www/stats;
+
+ location /download
+ {
Felix Dahlke 2013/08/29 14:20:45 We typically don't put opening braces on a new lin
+ auth_basic "Stats Restricted Access";
+ auth_basic_user_file /var/www/htpasswd;
+ }
+
+ location /update
+ {
+ auth_basic "Stats Restricted Access";
+ auth_basic_user_file /var/www/htpasswd;
+ }
+
+ location /notification
+ {
+ auth_basic "Stats Restricted Access";
+ auth_basic_user_file /var/www/htpasswd;
+ }
+}

Powered by Google App Engine
This is Rietveld