configuration.nix/hosts/rico2/services/if3.nix

35 lines
624 B
Nix
Raw Normal View History

2023-10-28 04:31:09 +05:30
{
2023-11-03 18:16:02 +05:30
pkgs,
2023-10-28 04:31:09 +05:30
if3,
2023-10-28 04:32:52 +05:30
...
2023-11-03 18:16:02 +05:30
}: let
system = pkgs.system;
in {
2023-10-28 05:13:01 +05:30
services = {
caddy.virtualHosts = {
"if3.adtya.xyz" = {
extraConfig = ''
2023-11-03 18:16:02 +05:30
root * ${if3.packages.${system}.default}/share/web
2023-10-28 05:13:01 +05:30
encode gzip
try_files {path} /index.html
file_server
'';
};
};
frp.settings = {
"http.if3.adtya.xyz" = {
type = "http";
custom_domains = "if3.adtya.xyz";
local_port = 80;
};
"https.if3.adtya.xyz" = {
type = "https";
custom_domains = "if3.adtya.xyz";
local_port = 443;
};
2023-10-28 04:31:09 +05:30
};
};
}