Compare commits

...

3 Commits

Author SHA1 Message Date
Lennart J. Kurzweg (Nx2)
579887e825 Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles 2025-08-31 21:39:10 +02:00
Lennart J. Kurzweg (Nx2)
a2003bc5aa fix nginx redirects 2025-08-31 21:39:07 +02:00
Lennart J. Kurzweg (Nx2)
d0964c01a7 copyparty++ 2025-08-31 21:28:31 +02:00
2 changed files with 24 additions and 21 deletions

View File

@@ -8,16 +8,21 @@
package = pkgs.copyparty;
openFilesLimit = 8192;
settings = {
i = [ "0.0.0.0" "unix:770:copyparty:/dev/shm/party.sock" ];
p = [ 3210 3211 ];
no-reload = true;
i = [ "0.0.0.0" "unix:770:copyparty:/dev/shm/party.sock" ];
name = "NxCopyParty";
ignored-flag = false;
shr = "/shares";
css-browser = "https://nx2.site/copyparty/extra-browser.css";
theme = 6;
xff-hdr = "X-Forwarded-For"; # so that cpp knows the real client ip behind nginx. Must match with nginx config
rproxy = 1;
no-reload = true;
no-robots = true;
rproxy = 1;
xff-hdr = "X-Forwarded-For"; # so that cpp knows the real client ip behind nginx. Must match with nginx config
shr = "/shares";
css-browser = "https://${hyper.domain}/copyparty/extra-browser.css";
theme = 6;
};
accounts = {
"${hyper.user}" = {

View File

@@ -90,24 +90,22 @@
default = true;
listen = dl;
locations = {
"/" = {
extraConfig = ''
"/".extraConfig = ''
index index.html;
'';
};
"~^(/ba)$" = { return = "301 /BA.pdf"; };
"/.well-known/matrix/client" = { return = "502"; };
"/.well-known/matrix/server" = { return = "502"; };
"/phone" = { return = "301 /cards/phone"; };
"/about-me" = { return = "301 /slides/about-me"; };
"/about-this-site" = { return = "301 /slides/about-this-site"; };
"/gpg" = { return = "301 /cards/gpg"; };
"/contact" = { return = "301 /cards/contact"; };
"~ ^(/.well-known/matrix/client)$".return = "502";
"~ ^(/.well-known/matrix/server)$".return = "502";
"~ ^(/phone)$".return = "301 /cards/phone";
"~ ^(/about-me)$".return = "301 /slides/about-me";
"~ ^(/about-this-site)$".return = "301 /slides/about-this-site";
"~ ^(/gpg)$".return = "301 /cards/gpg";
"~ ^(/contact)$".return = "301 /cards/contact";
"~ ^(/ba)$".return = "301 /BA.pdf";
};
};
"matrix.${hyper.domain}" = {
listen = dl;
locations = { "~.*" = { return = "502"; }; };
locations."~.*".return = "502";
};
# "pw.${hyper.domain}" = vh // {
# listen = dl;