fix nginx redirects
This commit is contained in:
@@ -90,24 +90,22 @@
|
|||||||
default = true;
|
default = true;
|
||||||
listen = dl;
|
listen = dl;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/".extraConfig = ''
|
||||||
extraConfig = ''
|
|
||||||
index index.html;
|
index index.html;
|
||||||
'';
|
'';
|
||||||
};
|
"~ ^(/.well-known/matrix/client)$".return = "502";
|
||||||
"~^(/ba)$" = { return = "301 /BA.pdf"; };
|
"~ ^(/.well-known/matrix/server)$".return = "502";
|
||||||
"/.well-known/matrix/client" = { return = "502"; };
|
"~ ^(/phone)$".return = "301 /cards/phone";
|
||||||
"/.well-known/matrix/server" = { return = "502"; };
|
"~ ^(/about-me)$".return = "301 /slides/about-me";
|
||||||
"/phone" = { return = "301 /cards/phone"; };
|
"~ ^(/about-this-site)$".return = "301 /slides/about-this-site";
|
||||||
"/about-me" = { return = "301 /slides/about-me"; };
|
"~ ^(/gpg)$".return = "301 /cards/gpg";
|
||||||
"/about-this-site" = { return = "301 /slides/about-this-site"; };
|
"~ ^(/contact)$".return = "301 /cards/contact";
|
||||||
"/gpg" = { return = "301 /cards/gpg"; };
|
"~ ^(/ba)$".return = "301 /BA.pdf";
|
||||||
"/contact" = { return = "301 /cards/contact"; };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"matrix.${hyper.domain}" = {
|
"matrix.${hyper.domain}" = {
|
||||||
listen = dl;
|
listen = dl;
|
||||||
locations = { "~.*" = { return = "502"; }; };
|
locations."~.*".return = "502";
|
||||||
};
|
};
|
||||||
# "pw.${hyper.domain}" = vh // {
|
# "pw.${hyper.domain}" = vh // {
|
||||||
# listen = dl;
|
# listen = dl;
|
||||||
|
|||||||
Reference in New Issue
Block a user