Initial clean commit
This commit is contained in:
commit
1862821f8f
15 changed files with 1240 additions and 0 deletions
64
modules/services/caddy.nix
Normal file
64
modules/services/caddy.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.caddy.enable = true;
|
||||
services.caddy.configFile = pkgs.writeText "Caddyfile" ''
|
||||
http:// {
|
||||
root * /usr/share/caddy
|
||||
file_server
|
||||
}
|
||||
|
||||
privatpraxis-last-heidelberg.de, www.privatpraxis-last-heidelberg.de {
|
||||
root * /var/www/privatpraxis-last-heidelberg.de/public
|
||||
encode zstd gzip
|
||||
file_server
|
||||
}
|
||||
|
||||
raayoni-last.com, www.raayoni-last.com, flux.vision, www.flux.vision {
|
||||
redir https://tobias.raayoni-last.com
|
||||
}
|
||||
|
||||
tobias.raayoni-last.com {
|
||||
root * /var/www/raayoni-last.com/tobias/public
|
||||
encode zstd gzip
|
||||
file_server
|
||||
}
|
||||
|
||||
randogoth.com, www.randogoth.com {
|
||||
root * /var/www/raayoni-last.com/tobias/public
|
||||
encode zstd gzip
|
||||
file_server
|
||||
}
|
||||
|
||||
sublunar.space, www.sublunar.space {
|
||||
root * /var/www/sublunar.space/public
|
||||
encode zstd gzip
|
||||
file_server
|
||||
}
|
||||
|
||||
almanac.sublunar.space {
|
||||
root * /var/www/sublunar.space/almanac/public
|
||||
encode zstd gzip
|
||||
|
||||
@wasm {
|
||||
path /js/*.wasm
|
||||
}
|
||||
header @wasm Content-Type application/wasm
|
||||
|
||||
file_server
|
||||
}
|
||||
|
||||
scopesessions.org, www.scopesessions.org {
|
||||
root * /var/www/scopesessions.org/public
|
||||
encode zstd gzip
|
||||
file_server
|
||||
}
|
||||
|
||||
nmns.place, www.nmns.place {
|
||||
root * /var/www/nmns.place/public
|
||||
encode zstd gzip
|
||||
file_server
|
||||
}
|
||||
|
||||
import Caddyfile.d/*.caddyfile
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue