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

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

Issue 29590580: #4685 - Update redirect target for issue reporter's privacy policy link (Closed) Base URL: https://hg.adblockplus.org/infrastructure/
Patch Set: Created Oct. 27, 2017, 10:42 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 { 312 {
313 set $link "filters"; 313 set $link "filters";
314 } 314 }
315 if ($arg_link = "subscriptions") 315 if ($arg_link = "subscriptions")
316 { 316 {
317 set $link "subscriptions"; 317 set $link "subscriptions";
318 } 318 }
319 if ($arg_link = "reporter_privacy") 319 if ($arg_link = "reporter_privacy")
320 { 320 {
321 set $link "privacy"; 321 set $link "privacy";
322 set $anchor "#abp_issue_reporter"; 322 set $anchor "#issue-reporter";
323 } 323 }
324 if ($arg_link = "privacy") 324 if ($arg_link = "privacy")
325 { 325 {
326 set $link "privacy"; 326 set $link "privacy";
327 } 327 }
328 if ($arg_link = "contribute") 328 if ($arg_link = "contribute")
329 { 329 {
330 set $link "contribute"; 330 set $link "contribute";
331 } 331 }
332 if ($arg_link = "donate") 332 if ($arg_link = "donate")
(...skipping 96 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