1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Don't repeat the hostname

This commit is contained in:
RGBCube 2024-04-24 11:46:26 +03:00
parent 9c9c945b20
commit eae2bf434e
No known key found for this signature in database
3 changed files with 10 additions and 8 deletions

View file

@ -7,7 +7,7 @@ systemConfiguration {
passwordFile = config.secrets.resticPassword.path;
initialize = true;
repository = "sftp:backup@${self.disk.networking.ipv4}:cube-varlib";
repository = "sftp:backup@disk:${config.networking.hostName}-varlib";
paths = [ "/var/lib" ];

View file

@ -13,11 +13,11 @@ in systemConfiguration {
services.nginx = enabled {
appendHttpConfig = ''
map $http_origin $allow_origin {
~^https://.+\.rgbcu.be$ $http_origin;
~^https://.+\.${domain}$ $http_origin;
}
map $http_origin $allow_methods {
~^https://.+\.rgbcu.be$ "GET, HEAD, OPTIONS";
~^https://.+\.${domain}$ "GET, HEAD, OPTIONS";
}
'';