retiolum: don't hardcode routing prefixes
This commit is contained in:
parent
f0308c72db
commit
4cb37c647b
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
let
|
let
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
let
|
let
|
||||||
|
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
let
|
let
|
||||||
hostname = config.krebs.build.host.name;
|
hostname = config.krebs.build.host.name;
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
wsgi-sock = "${config.services.uwsgi.runDir}/uwsgi.sock";
|
wsgi-sock = "${config.services.uwsgi.runDir}/uwsgi.sock";
|
||||||
in {
|
in {
|
||||||
services.redis.enable = true;
|
services.redis.enable = true;
|
||||||
|
|
|
@ -10,7 +10,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = domain;
|
domain = domain;
|
||||||
ip = "172.16.10.1/24";
|
ip = "172.16.10.1/24";
|
||||||
extraConfig = "-P ${pw} -l ${pkgs.lib.head config.krebs.build.host.nets.internet.addrs4}";
|
extraConfig = "-P ${pw} -l ${config.krebs.build.host.nets.internet.ip4.addr}";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@ let
|
||||||
hostname = config.krebs.build.host.name;
|
hostname = config.krebs.build.host.name;
|
||||||
user = config.services.nginx.user;
|
user = config.services.nginx.user;
|
||||||
group = config.services.nginx.group;
|
group = config.services.nginx.group;
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
base-dir = "/var/www/blog.euer";
|
base-dir = "/var/www/blog.euer";
|
||||||
in {
|
in {
|
||||||
# Prepare Blog directory
|
# Prepare Blog directory
|
||||||
|
|
|
@ -5,8 +5,8 @@ let
|
||||||
hostname = config.krebs.build.host.name;
|
hostname = config.krebs.build.host.name;
|
||||||
user = config.services.nginx.user;
|
user = config.services.nginx.user;
|
||||||
group = config.services.nginx.group;
|
group = config.services.nginx.group;
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
in {
|
in {
|
||||||
krebs.nginx = {
|
krebs.nginx = {
|
||||||
enable = mkDefault true;
|
enable = mkDefault true;
|
||||||
|
|
|
@ -18,8 +18,8 @@ let
|
||||||
# user1 = pass1
|
# user1 = pass1
|
||||||
# userN = passN
|
# userN = passN
|
||||||
tw-pass-file = "${sec}/tw-pass.ini";
|
tw-pass-file = "${sec}/tw-pass.ini";
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
in {
|
in {
|
||||||
services.phpfpm = {
|
services.phpfpm = {
|
||||||
# phpfpm does not have an enable option
|
# phpfpm does not have an enable option
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
let
|
let
|
||||||
hostname = config.krebs.build.host.name;
|
hostname = config.krebs.build.host.name;
|
||||||
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
in {
|
in {
|
||||||
krebs.nginx = {
|
krebs.nginx = {
|
||||||
enable = mkDefault true;
|
enable = mkDefault true;
|
||||||
|
|
|
@ -5,7 +5,7 @@ let
|
||||||
hostname = config.krebs.build.host.name;
|
hostname = config.krebs.build.host.name;
|
||||||
# TODO local-ip from the nets config
|
# TODO local-ip from the nets config
|
||||||
local-ip = "192.168.1.11";
|
local-ip = "192.168.1.11";
|
||||||
# local-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
# local-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
in {
|
in {
|
||||||
krebs.nginx = {
|
krebs.nginx = {
|
||||||
enable = mkDefault true;
|
enable = mkDefault true;
|
||||||
|
|
Loading…
Reference in a new issue