1
0
nixfiles/hosts/web-2/public.nix

23 lines
454 B
Nix
Raw Permalink Normal View History

2021-01-10 21:30:06 +01:00
{ ... }:
{
services.nginx = {
virtualHosts."web-2.net.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
return = "404";
};
locations."/public/" = {
alias = "/var/www/public/";
};
locations."/public/centopia/" = {
alias = "/var/www/public/centopia/";
extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
};
};
};
}