Add Mono FastCGI configuration

This commit is contained in:
coolneng 2021-05-11 11:48:26 +02:00
parent 7af1063f1f
commit 0aad4cffab
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 29 additions and 1 deletions

View File

@ -42,13 +42,41 @@
forceSSL = true; forceSSL = true;
}; };
}; };
virtualHosts = {
"frontend.coace.duckdns.org" = {
enableACME = true;
forceSSL = true;
root = "/vault/backups/frontend/inetpub/wwwroot";
locations = {
"/few/".extraConfig = ''
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root/few/$fastcgi_script_name;
fastcgi_param PATH_INFO "";
fastcgi-mono-server4 /applications=/few/:/vault/backups/frontend/inetpub/wwwroot/socket=tcp:127.0.0.1:9000;
include ${pkgs.nginx}/conf/fastcgi_params;
'';
"/gcw/".extraConfig = ''
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root/few/$fastcgi_script_name;
fastcgi_param PATH_INFO "";
fastcgi-mono-server4 /applications=/gcw/:/vault/backups/frontend/inetpub/wwwroot/socket=tcp:127.0.0.1:9000;
include ${pkgs.nginx}/conf/fastcgi_params;
'';
};
};
};
}; };
# ACME certs configuration # ACME certs configuration
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
email = "secretario@arquitectosdeceuta.com"; email = "secretario@arquitectosdeceuta.com";
certs."coace.duckdns.org".webroot = "/var/lib/acme/acme-challenge"; certs."coace.duckdns.org" = {
webroot = "/var/lib/acme/acme-challenge";
extraDomainNames = [ "frontend.coace.duckdns.org" ];
};
}; };
# Generate dhparams # Generate dhparams