add gateway automatic template and fefan vm
This commit is contained in:
13
modules/apps/gateway/lib/services/pull-webhook.service
Normal file
13
modules/apps/gateway/lib/services/pull-webhook.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Traefik config webhook
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/usr/local/bin
|
||||
ExecStart=/usr/bin/gunicorn --bind 0.0.0.0:5555 pull-webhook:app
|
||||
EnvironmentFile=/opt/gateway/gateway.env
|
||||
Restart=always
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
modules/apps/gateway/lib/services/traefik.service
Normal file
13
modules/apps/gateway/lib/services/traefik.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Traefik reverse proxy
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=traefik
|
||||
Group=traefik
|
||||
ExecStart=/usr/local/bin/traefik --configFile=/home/traefik/traefik.yml
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user