mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Expose some services to semi wan
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
055a8b3224
commit
410b6c0838
|
@ -103,6 +103,7 @@ in
|
||||||
"docker.privileged.enabled" = "true";
|
"docker.privileged.enabled" = "true";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
host_network."wan".cidr = secret.network.networks.home.wan or "";
|
||||||
host_network."default".cidr = secret.network.networks.home.amsterdam or "";
|
host_network."default".cidr = secret.network.networks.home.amsterdam or "";
|
||||||
host_network."mesh".cidr = secret.network.networks.vpn or "";
|
host_network."mesh".cidr = secret.network.networks.vpn or "";
|
||||||
|
|
||||||
|
|
|
@ -28,19 +28,29 @@ job "ingress" {
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
|
||||||
|
port "http-paccess" {
|
||||||
|
static = 80
|
||||||
|
to = 81
|
||||||
|
host_network = "wan"
|
||||||
|
}
|
||||||
|
|
||||||
port "http" {
|
port "http" {
|
||||||
static = 80
|
static = 80
|
||||||
to = 80
|
to = 80
|
||||||
|
host_network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
port "https" {
|
port "https" {
|
||||||
static = 443
|
static = 443
|
||||||
to = 443
|
to = 443
|
||||||
|
host_network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
port "imap" {
|
port "imap" {
|
||||||
static = 143
|
static = 143
|
||||||
to = 143
|
to = 143
|
||||||
|
host_network = "default"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ upstream matrix-mautrix-facebook {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen 81;
|
||||||
|
|
||||||
server_name jellyfin.in.redalder.org;
|
server_name jellyfin.in.redalder.org;
|
||||||
|
|
||||||
|
@ -84,6 +85,7 @@ server {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen 81;
|
||||||
|
|
||||||
server_name hass.in.redalder.org;
|
server_name hass.in.redalder.org;
|
||||||
|
|
||||||
|
@ -254,6 +256,7 @@ server {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen 81;
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
include /local/security.conf;
|
include /local/security.conf;
|
||||||
|
|
Loading…
Reference in a new issue