nginx: add upstream config template
systemd-networkd: remove example confs - should be replaced by actual network files
This commit is contained in:
parent
4611223e21
commit
d9695452d2
|
@ -0,0 +1,4 @@
|
||||||
|
upstream custom_upstream {
|
||||||
|
#server unix:/run/custom_upstream;
|
||||||
|
server 127.0.0.1:8080;
|
||||||
|
}
|
|
@ -1,4 +0,0 @@
|
||||||
[NetDev]
|
|
||||||
Name=bond0
|
|
||||||
|
|
||||||
Kind=bond
|
|
|
@ -1,2 +0,0 @@
|
||||||
[Match]
|
|
||||||
Name=bond0
|
|
|
@ -12,3 +12,8 @@ DNS=1.0.0.1
|
||||||
|
|
||||||
# Link discovery causes some issues so disable it.
|
# Link discovery causes some issues so disable it.
|
||||||
LLDP=no
|
LLDP=no
|
||||||
|
|
||||||
|
[DHCP]
|
||||||
|
# Make sure connection/route is chosen last!
|
||||||
|
RouteMetric=2048
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
systemd-network configuration examples for use in other .net* files!
|
|
|
@ -1,6 +0,0 @@
|
||||||
[Bond]
|
|
||||||
Mode=active-backup
|
|
||||||
|
|
||||||
PrimaryReselectPolicy=always
|
|
||||||
|
|
||||||
MIIMonitorSec=1s
|
|
|
@ -1,4 +0,0 @@
|
||||||
[Network]
|
|
||||||
Bond=bond*
|
|
||||||
|
|
||||||
PrimarySlave=yes
|
|
|
@ -1,5 +0,0 @@
|
||||||
[Network]
|
|
||||||
Bridge=br*
|
|
||||||
|
|
||||||
[Bridge]
|
|
||||||
STP=yes
|
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -1,2 +0,0 @@
|
||||||
[Network]
|
|
||||||
Bond=bond*
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue