working traefik
This commit is contained in:
@@ -5,4 +5,4 @@ echo "Server {{HOSTNAME}}"
|
||||
|
||||
export PS1="\[\e[32m\]\h:\w\$\[\e[0m\] "
|
||||
df -h .
|
||||
|
||||
cd /4server
|
||||
|
||||
@@ -20,7 +20,6 @@ services:
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- /run/docker.sock:/run/docker.sock:ro
|
||||
- /4server/data/traefik/etc:/etc/traefik
|
||||
|
||||
23
app/templates/extlinux.conf
Normal file
23
app/templates/extlinux.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
SERIAL ttyS0 115200
|
||||
DEFAULT menu.c32
|
||||
PROMPT 0
|
||||
MENU TITLE Alpine/Linux Boot Menu
|
||||
MENU HIDDEN
|
||||
MENU AUTOBOOT Alpine will be booted automatically in # seconds.
|
||||
TIMEOUT 100
|
||||
LABEL virt
|
||||
|
||||
MENU LABEL Linux virt
|
||||
LINUX vmlinuz-virt
|
||||
INITRD initramfs-virt
|
||||
APPEND root=LABEL=/ modules=sd-mod,usb-storage,ext4 console=ttyS0,115200n8 console=ttyAMA0,115200n8
|
||||
|
||||
LABEL lts
|
||||
MENU DEFAULT
|
||||
MENU LABEL Linux lts
|
||||
LINUX vmlinuz-lts
|
||||
INITRD initramfs-lts
|
||||
APPEND root=LABEL=/ modules=sd-mod,usb-storage,ext4 console=ttyS0,115200n8 console=ttyAMA0,115200n8
|
||||
|
||||
MENU SEPARATOR
|
||||
|
||||
@@ -50,18 +50,14 @@ firewall:
|
||||
inbound:
|
||||
- port: any #ping
|
||||
proto: icmp
|
||||
host: any
|
||||
groups:
|
||||
- admin
|
||||
|
||||
|
||||
- port: 22 #GIT
|
||||
proto: tcp
|
||||
groups:
|
||||
- admin
|
||||
- ansible
|
||||
|
||||
- port: 8080
|
||||
proto: tcp
|
||||
groups:
|
||||
-admin
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ accesslog:
|
||||
filePath: /var/log/traefik/access.log
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
dashboard: false
|
||||
disableDashboardAd: true
|
||||
insecure: true
|
||||
insecure: false
|
||||
|
||||
entryPoints:
|
||||
web:
|
||||
@@ -29,9 +29,6 @@ entryPoints:
|
||||
readTimeout: 0
|
||||
writeTimeout: 0
|
||||
idleTimeout: 42
|
||||
# -- (Optional) Add custom Entrypoint
|
||||
# custom:
|
||||
# address: :8080
|
||||
|
||||
# -- Configure your CertificateResolver here...
|
||||
certificatesResolvers:
|
||||
@@ -85,16 +82,16 @@ http:
|
||||
|
||||
|
||||
routers:
|
||||
saopaulo-router:
|
||||
rule: "Host(`dev.local`)"
|
||||
service: saopaulo-service
|
||||
api-router:
|
||||
rule: "Host(`{{HOSTNAME}}.odoo4projects.com`)"
|
||||
service: api-service
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
certResolver: production
|
||||
|
||||
services:
|
||||
saopaulo-service:
|
||||
api-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://10.5.0.1:8888"
|
||||
|
||||
Reference in New Issue
Block a user