mirror of
https://github.com/thegeneralist01/config.git
synced 2026-05-30 08:37:01 +02:00
Compare commits
4 commits
4826f1fe64
...
65ad4a6d6b
| Author | SHA1 | Date | |
|---|---|---|---|
| 65ad4a6d6b | |||
| 897a0ac880 | |||
| 7a9c496f02 | |||
| 41d3da9bb3 |
3 changed files with 10 additions and 6 deletions
|
|
@ -15,6 +15,7 @@
|
|||
extraGroups = [ "wheel" "audio" "video" "input" "scanner" "docker" ];
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/thegeneralist";
|
||||
homeMode = "0750";
|
||||
hashedPasswordFile = config.age.secrets.password.path;
|
||||
openssh.authorizedKeys.keys = let
|
||||
inherit (import ../../keys.nix) thegeneralist;
|
||||
|
|
@ -67,4 +68,3 @@
|
|||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ in
|
|||
users.users.gitea-runner = {
|
||||
isSystemUser = true;
|
||||
group = "gitea-runner";
|
||||
extraGroups = [ "users" ];
|
||||
home = "/var/lib/gitea-runner/central";
|
||||
createHome = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -56,18 +56,21 @@ in
|
|||
|
||||
virtualHosts."${family_domain}" = {
|
||||
root = "/var/www/${family_domain}/dist";
|
||||
locations."/".tryFiles = "$uri $uri.html $uri/ $uri/index.html =404";
|
||||
locations."/".tryFiles = "$uri $uri/index.html $uri.html =404";
|
||||
|
||||
extraConfig = ''
|
||||
if ($http_x_forwarded_proto = "http") {
|
||||
return 301 https://${family_domain}$request_uri;
|
||||
}
|
||||
absolute_redirect off;
|
||||
|
||||
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico|woff2?)$ {
|
||||
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico)$ {
|
||||
expires 1d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location ~* \.(ttf|woff2?)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue