on-metal updates
- grav fixes - course management migration
This commit is contained in:
parent
89404e80d3
commit
606c7185e0
|
@ -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 =
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue