forked from Drift/pvv-nixos-config
explicitly state nginx listen addresses
This commit is contained in:
parent
3880190577
commit
a78f120a65
|
@ -1,7 +1,5 @@
|
||||||
{config, ... }:
|
{ config, values, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "drift@pvv.ntnu.no";
|
defaults.email = "drift@pvv.ntnu.no";
|
||||||
|
@ -10,6 +8,17 @@
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
enableReload = true;
|
||||||
|
|
||||||
|
defaultListenAddresses = [
|
||||||
|
values.hosts.ildkule.ipv4
|
||||||
|
"[${values.hosts.ildkule.ipv6}]"
|
||||||
|
|
||||||
|
"127.0.0.1"
|
||||||
|
"127.0.0.2"
|
||||||
|
"[::1]"
|
||||||
|
];
|
||||||
|
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{config, ... }:
|
{ config, values, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "danio@pvv.ntnu.no";
|
defaults.email = "danio@pvv.ntnu.no";
|
||||||
|
@ -10,7 +8,16 @@
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
defaultListenAddresses = [ "129.241.210.169" "127.0.0.1" "127.0.0.2" "[2001:700:300:1900::169]" "[::1]" ];
|
enableReload = true;
|
||||||
|
|
||||||
|
defaultListenAddresses = [
|
||||||
|
values.hosts.jokum.ipv4
|
||||||
|
"[${values.hosts.jokum.ipv6}]"
|
||||||
|
|
||||||
|
"127.0.0.1"
|
||||||
|
"127.0.0.2"
|
||||||
|
"[::1]"
|
||||||
|
];
|
||||||
|
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
Loading…
Reference in New Issue