removed 'www' and custom ACME from caddy and added secure boot feature
This commit is contained in:
parent
a682abd501
commit
d043d7112b
@ -53,6 +53,8 @@ in
|
|||||||
options = [ "nofail" ];
|
options = [ "nofail" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot/efi".options = [ "umask=0077" "defaults" ];
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
@ -216,7 +218,7 @@ in
|
|||||||
user = "caddy";
|
user = "caddy";
|
||||||
group = "root";
|
group = "root";
|
||||||
email = "${personalization.caddy_email_for_zerossl}";
|
email = "${personalization.caddy_email_for_zerossl}";
|
||||||
acmeCA = "https://acme.zerossl.com/v2/DV90";
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${personalization.wordpress_url}" = {
|
"${personalization.wordpress_url}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@ -227,15 +229,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
"www.${personalization.wordpress_url}" = {
|
|
||||||
extraConfig = ''
|
|
||||||
encode gzip zstd
|
|
||||||
root * /var/lib/www/wordpress
|
|
||||||
php_fastcgi unix//run/phpfpm/mypool.sock
|
|
||||||
file_server browse
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
"${personalization.nextcloud_url}" = {
|
"${personalization.nextcloud_url}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
|
Loading…
Reference in New Issue
Block a user