Compare commits
19 Commits
zineshop
...
1eb6104be9
| Author | SHA1 | Date | |
|---|---|---|---|
|
1eb6104be9
|
|||
|
bc1ea7aa2c
|
|||
|
8ee697b67c
|
|||
|
48cdd2283a
|
|||
|
b3d7be6786
|
|||
|
51d97ed9ba
|
|||
|
a29339bc29
|
|||
|
3991435cf3
|
|||
|
94e05d99a4
|
|||
|
b1de5a1f71
|
|||
|
6946cf9c51
|
|||
|
2e11dac1db
|
|||
|
46849ff517
|
|||
|
9c69f663ee
|
|||
| a07f7b22f0 | |||
| 71eef69889 | |||
|
80fc4cc528
|
|||
|
8b37082844
|
|||
|
6c3a7be483
|
8
flake.lock
generated
8
flake.lock
generated
@@ -450,11 +450,11 @@
|
||||
"utils": "utils_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1744626173,
|
||||
"narHash": "sha256-DSuLVFGvmMUoStIs5ar4CLE8eD2dlFPUmPC7CODauts=",
|
||||
"lastModified": 1744671971,
|
||||
"narHash": "sha256-fMqRwtaEd7gIQRVqjpcRXxxxP3pDTFxfIJFtnLbqivY=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "19ce41aca7d92bc8e02f97e7bdbca7ac7ba64090",
|
||||
"revCount": 103,
|
||||
"rev": "c55cf4480b1d4aa7914c32e4d6322fd10c2404bd",
|
||||
"revCount": 114,
|
||||
"type": "git",
|
||||
"url": "https://git.dynamicdiscord.de/kalipso/zineshop"
|
||||
},
|
||||
|
||||
@@ -74,7 +74,7 @@ in
|
||||
};
|
||||
|
||||
|
||||
services.nginx.virtualHosts."shop.malobeo.org" = {
|
||||
services.nginx.virtualHosts."zines.malobeo.org" = {
|
||||
forceSSL = true;
|
||||
enableACME= true;
|
||||
locations."/" = {
|
||||
|
||||
@@ -152,7 +152,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."shop.malobeo.org" = {
|
||||
virtualHosts."zines.malobeo.org" = {
|
||||
# created with: nix-shell --packages apacheHttpd --run 'htpasswd -B -c foo.txt malobeo'
|
||||
# then content of foo.txt put into sops
|
||||
basicAuthFile = config.sops.secrets.shop_auth.path;
|
||||
@@ -182,5 +182,10 @@ in
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
system.stateVersion = "23.05"; # Do.. Not.. Change..
|
||||
|
||||
sops.secrets.shop_auth = {
|
||||
owner = config.services.nginx.user;
|
||||
group = config.services.nginx.group;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -67,11 +67,16 @@ with lib;
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."shop.malobeo.org" = {
|
||||
virtualHosts."zines.malobeo.org" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://10.100.0.101";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Authorization $http_authorization; # Pass the Authorization header
|
||||
proxy_pass_header Authorization;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user