faster and more secure nginx settings for blog
This commit is contained in:
parent
2e093b7d88
commit
06383391c2
1 changed files with 10 additions and 5 deletions
|
@ -1,16 +1,21 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
{pkgs, ...}: let
|
||||
path = "/var/www/blog/";
|
||||
in {
|
||||
imports = [../nginx.nix];
|
||||
|
||||
services.nginx = {
|
||||
recommendedBrotliSettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
package = pkgs.nginxQuic;
|
||||
virtualHosts = {
|
||||
"blog.cyplo.dev" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
quic = true;
|
||||
extraConfig = ''
|
||||
'';
|
||||
locations."/" = {
|
||||
root = path;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue