1
0
Fork 0

nixbld: fix nginx alias_traversal configuration issue

https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
This commit is contained in:
Sebastien Bourdeauducq 2019-09-17 16:40:22 +08:00
parent efc066d2cb
commit 4f648fba07
1 changed files with 16 additions and 16 deletions

View File

@ -307,8 +307,8 @@ ACTION=="add", SUBSYSTEM=="tty", \
locations."^~ /js/".extraConfig = '' locations."^~ /js/".extraConfig = ''
expires 60d; expires 60d;
''; '';
locations."/MathJax" = { locations."/MathJax/" = {
alias = "/var/www/MathJax"; alias = "/var/www/MathJax/";
extraConfig = '' extraConfig = ''
expires 60d; expires 60d;
''; '';
@ -329,25 +329,25 @@ ACTION=="add", SUBSYSTEM=="tty", \
''; '';
# autogenerated ARTIQ manuals # autogenerated ARTIQ manuals
locations."/artiq/manual-beta" = { locations."/artiq/manual-beta/" = {
alias = "${hydraWwwOutputs}/artiq-manual-html-beta/share/doc/artiq-manual/html"; alias = "${hydraWwwOutputs}/artiq-manual-html-beta/share/doc/artiq-manual/html/";
}; };
locations."/artiq/manual-beta.pdf" = { locations."=/artiq/manual-beta.pdf" = {
alias = "${hydraWwwOutputs}/artiq-manual-latexpdf-beta/share/doc/artiq-manual/ARTIQ.pdf"; alias = "${hydraWwwOutputs}/artiq-manual-latexpdf-beta/share/doc/artiq-manual/ARTIQ.pdf";
}; };
# legacy content # legacy content
locations."/migen/manual" = { locations."/migen/manual/" = {
alias = "/var/www/m-labs.hk.old/migen/manual"; alias = "/var/www/m-labs.hk.old/migen/manual/";
}; };
locations."/artiq/manual" = { locations."/artiq/manual/" = {
alias = "/var/www/m-labs.hk.old/artiq/manual-release-4"; alias = "/var/www/m-labs.hk.old/artiq/manual-release-4/";
}; };
locations."/artiq/manual-release-4" = { locations."/artiq/manual-release-4/" = {
alias = "/var/www/m-labs.hk.old/artiq/manual-release-4"; alias = "/var/www/m-labs.hk.old/artiq/manual-release-4/";
}; };
locations."/artiq/manual-release-3" = { locations."/artiq/manual-release-3/" = {
alias = "/var/www/m-labs.hk.old/artiq/manual-release-3"; alias = "/var/www/m-labs.hk.old/artiq/manual-release-3/";
}; };
}; };
in { in {
@ -356,7 +356,7 @@ ACTION=="add", SUBSYSTEM=="tty", \
"lab.m-labs.hk" = { "lab.m-labs.hk" = {
addSSL = true; addSSL = true;
useACMEHost = "nixbld.m-labs.hk"; useACMEHost = "nixbld.m-labs.hk";
locations."/munin".alias = "/var/www/munin"; locations."/munin/".alias = "/var/www/munin/";
locations."/munin".extraConfig = '' locations."/munin".extraConfig = ''
auth_basic "Munin"; auth_basic "Munin";
auth_basic_user_file /etc/nixos/secret/muninpasswd; auth_basic_user_file /etc/nixos/secret/muninpasswd;
@ -371,8 +371,8 @@ ACTION=="add", SUBSYSTEM=="tty", \
"conda.m-labs.hk" = { "conda.m-labs.hk" = {
forceSSL = true; forceSSL = true;
useACMEHost = "nixbld.m-labs.hk"; useACMEHost = "nixbld.m-labs.hk";
locations."/artiq-beta" = { locations."/artiq-beta/" = {
alias = "${hydraWwwOutputs}/artiq-conda-channel-beta"; alias = "${hydraWwwOutputs}/artiq-conda-channel-beta/";
extraConfig = '' extraConfig = ''
autoindex on; autoindex on;
index bogus_index_file; index bogus_index_file;