nginx: add upstream config template

systemd-networkd: remove example confs - should be replaced by actual network files
This commit is contained in:
mpmc 2022-07-14 13:56:36 +01:00
parent 4611223e21
commit d9695452d2
14 changed files with 9 additions and 132 deletions

4
debian/bullseye/nginx/upstream.conf vendored Normal file
View File

@ -0,0 +1,4 @@
upstream custom_upstream {
#server unix:/run/custom_upstream;
server 127.0.0.1:8080;
}

View File

@ -1,4 +0,0 @@
[NetDev]
Name=bond0
Kind=bond

View File

@ -1,2 +0,0 @@
[Match]
Name=bond0

View File

@ -12,3 +12,8 @@ DNS=1.0.0.1
# Link discovery causes some issues so disable it.
LLDP=no
[DHCP]
# Make sure connection/route is chosen last!
RouteMetric=2048

View File

@ -1 +0,0 @@
systemd-network configuration examples for use in other .net* files!

View File

@ -1,6 +0,0 @@
[Bond]
Mode=active-backup
PrimaryReselectPolicy=always
MIIMonitorSec=1s

View File

@ -1,4 +0,0 @@
[Network]
Bond=bond*
PrimarySlave=yes

View File

@ -1,5 +0,0 @@
[Network]
Bridge=br*
[Bridge]
STP=yes

View File

@ -1,11 +0,0 @@
[Network]
DHCP=yes
DNSOverTLS=opportunistic
DNS=1.1.1.1
DNS=1.0.0.1
# Link discovery causes some issues so disable it.
LLDP=no

View File

@ -1,32 +0,0 @@
[Network]
# IP address range.
Address=192.168.156.1/24
# As systemd-networkd doesn't yet *fully* support being a dhcp server
# setup dnsmasq instead.
# Enable serving of DHCP addresses from the network range.
#DHCPServer=yes
# Packet forwarding.
IPForward=yes
# Masquerade.
IPMasquerade=both
# Link discovery causes some issues so disable it.
LLDP=no
# As systemd-networkd doesn't yet *fully* support being a dhcp server
# setup dnsmasq instead.
#[DHCPServer]
# Lease time
#DefaultLeaseTimeSec=300
# DNS to serve
#DNS=1.1.1.1
#DNS=1.0.0.1
#[DHCPServerStaticLease]
#MACAddress=xx:xx:xx:xx:xx:xx
#Address=192.168.156.2

View File

@ -1,2 +0,0 @@
[Network]
Bond=bond*

View File

@ -1,40 +0,0 @@
[Network]
# Put global network options here.
DNSOverTLS=opportunistic
# Link discovery causes some issues so disable it.
LLDP=no
# IPv6 - must come before IPv4, or some weird things happen.
[Route]
# v6
Gateway=<IPv6>
# Not always needed but here just in case.
GatewayOnLink=yes
[Network]
Address=<IPv6>/prefix
# DNS
# Cloudflare 2606:4700:4700::1111 / 2606:4700:4700::1001
DNS=2606:4700:4700::1111
DNS=2606:4700:4700::1001
# IPv4
[Route]
Gateway=<IPv4>
# Not always needed but here just in case.
GatewayOnLink=yes
[Network]
# v4
Address=<IPv4>/prefix
# DNS
# Cloudflare 1.1.1.1 / 1.0.0.1
DNS=1.1.1.1
DNS=1.0.0.1

View File

@ -1,12 +0,0 @@
[Network]
Address=10.0.0.2/24
DNSOverTLS=opportunistic
DNS=1.1.1.1
DNS=1.0.0.1
# Link discovery causes some issues so disable it.
LLDP=no

View File

@ -1,13 +0,0 @@
[Network]
Address=10.0.0.1/24
DNSOverTLS=opportunistic
DNS=1.1.1.1
DNS=1.0.0.1
# Link discovery causes some issues so disable it.
LLDP=no