{ config, lib, pkgs, ... }: with lib; let in { config = { modules = { services = { forgejo = { enable = true; domain = "git.reidlab.pink"; port = 3000; }; # you should probably keep this on # actually enables nginx, configures acme, # gzip, optimization, proxy, ssl config, # opens ports, and adds some Headers nginx-config.enable = true; staticSites = { "reidlab.pink".dataDir = "/var/www/reidlab.pink"; }; metrics = { enable = true; domain = "grafana.reidlab.pink"; port = 2342; }; }; }; services = { nginx.virtualHosts = { "reidlab.pink" = { locations."/f/".extraConfig = '' add_header Access-Control-Allow-Origin "*"; ''; # we should perhaps add something to help with this in staticsites? extraConfig = '' error_page 404 /404.html; ''; }; }; }; }; }