Don't change the settings on the parent host.
This commit is contained in:
parent
7a071b4c8f
commit
6eb614ec54
|
@ -124,6 +124,17 @@ in {
|
||||||
streamingProcesses = cfg.streaming-processes;
|
streamingProcesses = cfg.streaming-processes;
|
||||||
};
|
};
|
||||||
nginx = {
|
nginx = {
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
commonHttpConfig = ''
|
||||||
|
log_format with_response_time '$remote_addr - $remote_user [$time_local] '
|
||||||
|
'"$request" $status $body_bytes_sent '
|
||||||
|
'"$http_referer" "$http_user_agent" '
|
||||||
|
'"$request_time" "$upstream_response_time"';
|
||||||
|
access_log /var/log/nginx/access.log with_response_time;
|
||||||
|
'';
|
||||||
virtualHosts."${cfg.hostname}" = {
|
virtualHosts."${cfg.hostname}" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
@ -139,17 +150,6 @@ in {
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
commonHttpConfig = ''
|
|
||||||
log_format with_response_time '$remote_addr - $remote_user [$time_local] '
|
|
||||||
'"$request" $status $body_bytes_sent '
|
|
||||||
'"$http_referer" "$http_user_agent" '
|
|
||||||
'"$request_time" "$upstream_response_time"';
|
|
||||||
access_log /var/log/nginx/access.log with_response_time;
|
|
||||||
'';
|
|
||||||
recommendedTlsSettings = true;
|
|
||||||
recommendedGzipSettings = true;
|
|
||||||
recommendedOptimisation = true;
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
virtualHosts."${cfg.hostname}" = {
|
virtualHosts."${cfg.hostname}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Reference in New Issue