Snippet
{
services.sharkey = {
enable = true;
settings.port = 7777;
settings.url = "https://subdomain.example.com";
};
services.caddy.virtualHosts = {
"subdomain.example.com" = {
extraConfig = ''
reverse_proxy localhost:7777
'';
};
};
}