on-metal updates

- grav fixes
- course management migration
This commit is contained in:
quitte 2023-08-16 14:21:56 +02:00
parent 89404e80d3
commit 606c7185e0
2 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
let
hostName = "kurse.${config.fsr.domain}";
# hostName = "kurse.${config.fsr.domain}";
hostName = "kurse.ifsr.de";
in
{
sops.secrets =

View file

@ -30,13 +30,20 @@ in
};
services.nginx = {
virtualHosts."www.${config.fsr.domain}" = {
enableACME = true;
forceSSL = true;
locations."/".return = "301 $scheme://ifsr.de$request_uri";
};
virtualHosts."${config.fsr.domain}" = {
enableACME = true;
forceSSL = true;
root = "/srv/web/ifsrde";
locations = {
"/" = {
tryFiles = "$uri $uri/ /index.php?$query_string;";
tryFiles = "$uri $uri/ /index.php?$query_string";
};
"~ \.php$" = {
extraConfig = ''