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 = { services.nginx = {
enable = mkDefault true; enable = mkDefault true;
recommendedGzipSettings = true;
virtualHosts = { virtualHosts = {
"${ext-dom}" = { "${ext-dom}" = {
#serverAliases = [ #serverAliases = [
@ -83,14 +84,6 @@ in {
#]; #];
forceSSL = true; forceSSL = true;
enableACME = 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 = { locations = {
"/" = { "/" = {
root = wiki-dir; root = wiki-dir;

View File

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