forked from fi/nix-infra
Add janky nginx config with workaround for proxy protocol
This commit is contained in:
parent
ade955bdf4
commit
ecfe325c9c
14 changed files with 343 additions and 281 deletions
25
hosts/web-public-2/virtualHosts/default.nix
Normal file
25
hosts/web-public-2/virtualHosts/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./anisync.grzb.de.nix
|
||||
./birdsite.nekover.se.nix
|
||||
./element.nekover.se.nix
|
||||
./gameserver.grzb.de.nix
|
||||
./git.grzb.de.nix
|
||||
./matrix.nekover.se.nix
|
||||
./mewtube.nekover.se.nix
|
||||
./nekover.se.nix
|
||||
./nextcloud.grzb.de.nix
|
||||
./social.nekover.se.nix
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."_" = {
|
||||
listen = [{
|
||||
addr = "0.0.0.0";
|
||||
port = 80;
|
||||
}];
|
||||
locations."/" = {
|
||||
return = "301 https://$host$request_uri";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue