download over http

This commit is contained in:
2026-01-27 21:25:49 +00:00
parent 18723da186
commit e0ced427d2
2 changed files with 44 additions and 31 deletions

View File

@@ -13,28 +13,6 @@
firewall.allowedTCPPorts = [ 80 ];
};
services.nginx = {
enable = true;
defaultListenAddresses = [ "0.0.0.0" ];
virtualHosts = {
"_" = {
default = true;
root = "/var/run/nginx/motiejus";
locations."/".extraConfig = ''
autoindex on;
'';
};
"go" = {
addSSL = true;
sslCertificate = "${../../shared/certs/go.pem}";
sslCertificateKey = "${../../shared/certs/go.key}";
locations."/".extraConfig = ''
return 301 https://golinks.io$request_uri;
'';
};
};
};
environment.systemPackages = with pkgs; [
#swc
turbo
@@ -60,10 +38,6 @@
programs._1password.enable = true;
systemd.services = {
nginx.serviceConfig.BindPaths = [ "/home/motiejus/www:/var/run/nginx/motiejus" ];
};
home-manager.users.${config.mj.username} = {
home.sessionVariables = {
GOFLAGS = "-tags=big,integration,cluster_integration";