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

Side by Side Diff: modules/web/templates/adblockplus.org.conf.erb

Issue 6735763177734144: Issue 2624 - Don't specify the Google account to use for the Adblock Browser beta community in the … (Closed)
Patch Set: Created June 3, 2015, 8:17 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # XSS and clickjacking prevention headers 1 # XSS and clickjacking prevention headers
2 2
3 set $csp_frame ""; 3 set $csp_frame "";
4 if ($uri ~ ^/(:?\w\w(_\w\w)?/)?(?:index|firefox|chrome|opera|android|internet-ex plorer|safari|yandex-browser|maxthon)?$) 4 if ($uri ~ ^/(:?\w\w(_\w\w)?/)?(?:index|firefox|chrome|opera|android|internet-ex plorer|safari|yandex-browser|maxthon)?$)
5 { 5 {
6 set $csp_frame "; frame-src www.youtube-nocookie.com;"; 6 set $csp_frame "; frame-src www.youtube-nocookie.com;";
7 } 7 }
8 add_header Content-Security-Policy "default-src 'self'; img-src * data:; style-s rc 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' $csp_ frame"; 8 add_header Content-Security-Policy "default-src 'self'; img-src * data:; style-s rc 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' $csp_ frame";
9 add_header X-Frame-Options "sameorigin"; 9 add_header X-Frame-Options "sameorigin";
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if ($arg_link = "safari_support") 97 if ($arg_link = "safari_support")
98 { 98 {
99 rewrite ^ /forum/viewforum.php?f=18? redirect; 99 rewrite ^ /forum/viewforum.php?f=18? redirect;
100 } 100 }
101 if ($arg_link = "knownIssuesChrome_filterstorage") 101 if ($arg_link = "knownIssuesChrome_filterstorage")
102 { 102 {
103 rewrite ^ /forum/viewtopic.php?t=23597? redirect; 103 rewrite ^ /forum/viewtopic.php?t=23597? redirect;
104 } 104 }
105 if ($arg_link = "adblock_browser_android_beta_community") 105 if ($arg_link = "adblock_browser_android_beta_community")
106 { 106 {
107 rewrite ^ https://plus.google.com/u/1/communities/104936844759781288661? red irect; 107 rewrite ^ https://plus.google.com/communities/104936844759781288661? redirec t;
108 } 108 }
109 109
110 set $lang "en"; 110 set $lang "en";
111 set $link ""; 111 set $link "";
112 set $anchor ""; 112 set $anchor "";
113 113
114 if ($arg_link ~ "^share-") 114 if ($arg_link ~ "^share-")
115 { 115 {
116 set $link "share"; 116 set $link "share";
117 set $anchor "?a=minimal"; 117 set $anchor "?a=minimal";
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 location /403.html 230 location /403.html
231 { 231 {
232 try_files $uri @proxied; 232 try_files $uri @proxied;
233 } 233 }
234 location @proxied 234 location @proxied
235 { 235 {
236 proxy_pass https://server_16.adblockplus.org; 236 proxy_pass https://server_16.adblockplus.org;
237 proxy_set_header Host adblockplus.org; 237 proxy_set_header Host adblockplus.org;
238 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 238 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
239 } 239 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld