ma nginx: use gzip settings, update hostname

This commit is contained in:
makefu 2019-09-25 14:06:23 +02:00
parent 2148318cd5
commit b5d57ea99e
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 2 additions and 10 deletions

View File

@ -75,6 +75,7 @@ in {
services.nginx = {
enable = mkDefault true;
recommendedGzipSettings = true;
virtualHosts = {
"${ext-dom}" = {
#serverAliases = [
@ -83,14 +84,6 @@ in {
#];
forceSSL = true;
enableACME = true;
# recommendedGzipSettings = true;
extraConfig = ''
gzip on;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/css;
default_type text/plain;
'';
locations = {
"/" = {
root = wiki-dir;

View File

@ -2,8 +2,7 @@
{
services.nginx = {
enable = lib.mkDefault true;
virtualHosts."misa-felix-hochzeit.ml" = {
serverAliases = [ "misa-felix.ml" "www.misa-felix.ml" ];
virtualHosts."misa-felix.ml" = {
forceSSL = true;
enableACME = true;
locations = {