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

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

Issue 29556606: Issue 5786 - Link adblock_browser_*_support to corresponding user forum (Closed)
Patch Set: Created Sept. 26, 2017, 9:23 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)?$|^/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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 if ($arg_link = "adblock_browser_android_beta_community") 147 if ($arg_link = "adblock_browser_android_beta_community")
148 { 148 {
149 rewrite ^ https://plus.google.com/communities/104936844759781288661? redirec t; 149 rewrite ^ https://plus.google.com/communities/104936844759781288661? redirec t;
150 } 150 }
151 if ($arg_link ~ "^adblock_browser_promotion_\d$") 151 if ($arg_link ~ "^adblock_browser_promotion_\d$")
152 { 152 {
153 rewrite ^ https://adblockplus.org/adblock-browser redirect; 153 rewrite ^ https://adblockplus.org/adblock-browser redirect;
154 } 154 }
155 if ($arg_link = "adblock_browser_android_support") 155 if ($arg_link = "adblock_browser_android_support")
156 { 156 {
157 rewrite ^ https://adblockbrowser.org/$lang/android-support/? redirect; 157 rewrite ^ /forum/viewforum.php?f=24? redirect;
158 } 158 }
159 if ($arg_link = "adblock_browser_android_faq") 159 if ($arg_link = "adblock_browser_android_faq")
160 { 160 {
161 rewrite ^ https://adblockbrowser.org/$lang/android-support/faq? redirect; 161 rewrite ^ /forum/viewforum.php?f=24? redirect;
162 } 162 }
163 if ($arg_link = "adblock_browser_ios_support") 163 if ($arg_link = "adblock_browser_ios_support")
164 { 164 {
165 rewrite ^ https://adblockbrowser.org/en/ios-support/? redirect; 165 rewrite ^ /forum/viewforum.php?f=25? redirect;
166 } 166 }
167 if ($arg_link = "adblock_browser_android_store") 167 if ($arg_link = "adblock_browser_android_store")
168 { 168 {
169 rewrite ^ $adblock_browser_android_store? redirect; 169 rewrite ^ $adblock_browser_android_store? redirect;
170 } 170 }
171 if ($arg_link = "adblock_browser_ios_store") 171 if ($arg_link = "adblock_browser_ios_store")
172 { 172 {
173 rewrite ^ https://geo.itunes.apple.com/us/app/adblock-browser-best-ad-blocke r/id1015653330?mt=8? redirect; 173 rewrite ^ https://geo.itunes.apple.com/us/app/adblock-browser-best-ad-blocke r/id1015653330?mt=8? redirect;
174 } 174 }
175 if ($arg_link = "adblock_browser_android_download") 175 if ($arg_link = "adblock_browser_android_download")
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 location /403.html 429 location /403.html
430 { 430 {
431 try_files $uri @proxied; 431 try_files $uri @proxied;
432 } 432 }
433 location @proxied 433 location @proxied
434 { 434 {
435 proxy_pass https://server16.adblockplus.org; 435 proxy_pass https://server16.adblockplus.org;
436 proxy_set_header Host adblockplus.org; 436 proxy_set_header Host adblockplus.org;
437 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 437 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
438 } 438 }
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