l nginx: reload instead of restart, remove old default
This commit is contained in:
parent
82e49f156a
commit
15539bebab
@ -8,12 +8,7 @@ with import <stockholm/lib>;
|
|||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts._http = {
|
enableReload = true;
|
||||||
default = true;
|
|
||||||
extraConfig = ''
|
|
||||||
return 404;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualHosts.default = {
|
virtualHosts.default = {
|
||||||
locations."= /etc/os-release".extraConfig = ''
|
locations."= /etc/os-release".extraConfig = ''
|
||||||
|
@ -32,6 +32,7 @@ in {
|
|||||||
services.nginx.virtualHosts."lassul.us" = {
|
services.nginx.virtualHosts."lassul.us" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
default = true;
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
root /srv/http/lassul.us;
|
root /srv/http/lassul.us;
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user