diff --git a/sites-enabled/10-www.freecodecamp.org.conf b/sites-enabled/10-www.freecodecamp.org.conf index b6a2c5d..ce0d315 100644 --- a/sites-enabled/10-www.freecodecamp.org.conf +++ b/sites-enabled/10-www.freecodecamp.org.conf @@ -136,6 +136,7 @@ server { include snippets/app/learn.org.conf; proxy_pass http://client-eng; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -192,6 +193,7 @@ server { location /chinese/ { # the trailing hash is needed here. proxy_pass http://client-chn/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -234,6 +236,7 @@ server { location /espanol/ { # the trailing hash is needed here. proxy_pass http://client-esp/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -276,6 +279,7 @@ server { location /chinese-traditional/ { # the trailing hash is needed here. proxy_pass http://client-cnt/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -294,6 +298,7 @@ server { location /italian/ { # the trailing hash is needed here. proxy_pass http://client-ita/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -336,6 +341,7 @@ server { location /portuguese/ { # the trailing hash is needed here. proxy_pass http://client-por/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -378,6 +384,7 @@ server { location /japanese/ { # the trailing hash is needed here. proxy_pass http://client-jpn/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -420,6 +427,7 @@ server { location /ukrainian/ { # the trailing hash is needed here. proxy_pass http://client-ukr/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -466,6 +474,7 @@ server { # location /arabic/ { # # the trailing hash is needed here. # proxy_pass http://client-ara/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -512,6 +521,7 @@ server { # location /bengali/ { # # the trailing hash is needed here. # proxy_pass http://client-ben/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -558,6 +568,7 @@ server { # location /urdu/ { # # the trailing hash is needed here. # proxy_pass http://client-urd/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -604,6 +615,7 @@ server { # location /hindi/ { # # the trailing hash is needed here. # proxy_pass http://client-hin/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -653,6 +665,7 @@ server { # location /korean/ { # # the trailing hash is needed here. # proxy_pass http://client-kor/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -699,6 +712,7 @@ server { # location /turkish/ { # # the trailing hash is needed here. # proxy_pass http://client-tur/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -748,6 +762,7 @@ server { # location /french/ { # # the trailing hash is needed here. # proxy_pass http://client-fre/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -794,6 +809,7 @@ server { # location /swahili/ { # # the trailing hash is needed here. # proxy_pass http://client-swa/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -840,6 +856,7 @@ server { # location /indonesian/ { # # the trailing hash is needed here. # proxy_pass http://client-ind/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -886,6 +903,7 @@ server { # location /vietnamese/ { # # the trailing hash is needed here. # proxy_pass http://client-vie/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -935,6 +953,7 @@ server { # location /haitian/ { # # the trailing hash is needed here. # proxy_pass http://client-hat/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -980,6 +999,7 @@ server { location /german/ { # the trailing hash is needed here. proxy_pass http://client-ger/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } diff --git a/sites-enabled/20-www.freecodecamp.dev.conf b/sites-enabled/20-www.freecodecamp.dev.conf index a193c8a..e0861f6 100644 --- a/sites-enabled/20-www.freecodecamp.dev.conf +++ b/sites-enabled/20-www.freecodecamp.dev.conf @@ -105,6 +105,7 @@ server { include snippets/app/learn.dev.conf; proxy_pass http://client-eng; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -160,6 +161,7 @@ server { location /chinese/ { # the trailing hash is needed here. proxy_pass http://client-chn/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -205,6 +207,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-esp/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -243,6 +246,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-cnt/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -267,6 +271,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-ita/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -305,6 +310,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-por/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -343,6 +349,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-jpn/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -381,6 +388,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-ukr/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } @@ -423,6 +431,7 @@ server { # # the trailing hash is needed here. # proxy_pass http://client-ara/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -468,6 +477,7 @@ server { # # the trailing hash is needed here. # proxy_pass http://client-ben/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -513,6 +523,7 @@ server { # # the trailing hash is needed here. # proxy_pass http://client-urd/; + # include snippets/common/project-euler-redirects.conf; # include snippets/common/proxy-params.conf; # } @@ -554,6 +565,7 @@ server { # the trailing hash is needed here. proxy_pass http://client-ger/; + include snippets/common/project-euler-redirects.conf; include snippets/common/proxy-params.conf; } diff --git a/snippets/app/learn.dev.conf b/snippets/app/learn.dev.conf index ea13c4c..ee5b200 100644 --- a/snippets/app/learn.dev.conf +++ b/snippets/app/learn.dev.conf @@ -30,5 +30,3 @@ location ^~ /ue/ { location ^~ /unsubscribe/ { rewrite ^/unsubscribe/(.*)$ https://api.freecodecamp.dev/unsubscribe/$1; } - -include snippets/common/project-euler-redirects.conf; diff --git a/snippets/app/learn.org.conf b/snippets/app/learn.org.conf index a0d26e8..62a33bd 100644 --- a/snippets/app/learn.org.conf +++ b/snippets/app/learn.org.conf @@ -30,5 +30,3 @@ location ^~ /ue/ { location ^~ /unsubscribe/ { rewrite ^/unsubscribe/(.*)$ https://api.freecodecamp.org/unsubscribe/$1; } - -include snippets/common/project-euler-redirects.conf;