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

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

Issue 29460563: Issue 5268 - Redirect firefox support link to forum thread (Closed)
Patch Set: Created June 9, 2017, 1:17 p.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)?$|^/blog/) 4 if ($uri ~ ^/(:?\w\w(_\w\w)?/)?(?:index|firefox|chrome|opera|android|internet-ex plorer|safari|yandex-browser|maxthon)?$|^/blog/)
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 rewrite ^ /forum/viewforum.php?f=18? redirect; 129 rewrite ^ /forum/viewforum.php?f=18? redirect;
130 } 130 }
131 if ($arg_link = "edge_support") 131 if ($arg_link = "edge_support")
132 { 132 {
133 rewrite ^ /forum/viewforum.php?f=27? redirect; 133 rewrite ^ /forum/viewforum.php?f=27? redirect;
134 } 134 }
135 if ($arg_link = "knownIssuesChrome_filterstorage") 135 if ($arg_link = "knownIssuesChrome_filterstorage")
136 { 136 {
137 rewrite ^ /forum/viewtopic.php?t=23597? redirect; 137 rewrite ^ /forum/viewtopic.php?t=23597? redirect;
138 } 138 }
139 if ($arg_link = "firefox_support")
140 {
141 rewrite ^ /forum/viewforum.php?f=1? redirect;
142 }
139 if ($arg_link = "adblock_browser_android_beta_community") 143 if ($arg_link = "adblock_browser_android_beta_community")
140 { 144 {
141 rewrite ^ https://plus.google.com/communities/104936844759781288661? redirec t; 145 rewrite ^ https://plus.google.com/communities/104936844759781288661? redirec t;
142 } 146 }
143 if ($arg_link ~ "^adblock_browser_promotion_\d$") 147 if ($arg_link ~ "^adblock_browser_promotion_\d$")
144 { 148 {
145 rewrite ^ https://adblockplus.org/adblock-browser redirect; 149 rewrite ^ https://adblockplus.org/adblock-browser redirect;
146 } 150 }
147 if ($arg_link = "adblock_browser_android_support") 151 if ($arg_link = "adblock_browser_android_support")
148 { 152 {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 location /403.html 351 location /403.html
348 { 352 {
349 try_files $uri @proxied; 353 try_files $uri @proxied;
350 } 354 }
351 location @proxied 355 location @proxied
352 { 356 {
353 proxy_pass https://server16.adblockplus.org; 357 proxy_pass https://server16.adblockplus.org;
354 proxy_set_header Host adblockplus.org; 358 proxy_set_header Host adblockplus.org;
355 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 359 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
356 } 360 }
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