Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
5e5e020f5b
@ -28,7 +28,7 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
|||||||
msg_ok "Installed Traefik v${RELEASE}"
|
msg_ok "Installed Traefik v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Creating Traefik configuration"
|
msg_info "Creating Traefik configuration"
|
||||||
cat <<EOF >/etc/traefik/traefik.yaml
|
cat <<'EOF' >/etc/traefik/traefik.yaml
|
||||||
providers:
|
providers:
|
||||||
file:
|
file:
|
||||||
directory: /etc/traefik/conf.d/
|
directory: /etc/traefik/conf.d/
|
||||||
@ -110,7 +110,7 @@ EOF
|
|||||||
msg_ok "Created Traefik configuration"
|
msg_ok "Created Traefik configuration"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/traefik.service
|
cat <<'EOF' >/etc/systemd/system/traefik.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Traefik is an open-source Edge Router that makes publishing your services a fun and easy experience
|
Description=Traefik is an open-source Edge Router that makes publishing your services a fun and easy experience
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ systemctl enable -q --now traefik
|
|||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
msg_info "Creating site templates"
|
msg_info "Creating site templates"
|
||||||
cat <<EOF >/etc/traefik/template.yaml.tpl
|
cat <<'EOF' >/etc/traefik/template.yaml.tpl
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
${hostname}:
|
${hostname}:
|
||||||
@ -142,9 +142,10 @@ http:
|
|||||||
servers:
|
servers:
|
||||||
- url: "${URL}"
|
- url: "${URL}"
|
||||||
EOF
|
EOF
|
||||||
msg_ok: "Template Created"
|
msg_ok "Template Created"
|
||||||
msg_info: "Creating Helper Scripts"
|
|
||||||
cat <<EOF >/usr/bin/addsite
|
msg_info "Creating Helper Scripts"
|
||||||
|
cat <<'EOF' >/usr/bin/addsite
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function setup_site() {
|
function setup_site() {
|
||||||
@ -164,7 +165,7 @@ function setup_site() {
|
|||||||
|
|
||||||
setup_site
|
setup_site
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF >/usr/bin/ensite
|
cat <<'EOF' >/usr/bin/ensite
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function ensite() {
|
function ensite() {
|
||||||
@ -193,7 +194,7 @@ function ensite() {
|
|||||||
|
|
||||||
ensite
|
ensite
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF >/usr/bin/dissite
|
cat <<'EOF' >/usr/bin/dissite
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function dissite() {
|
function dissite() {
|
||||||
@ -223,7 +224,7 @@ function dissite() {
|
|||||||
dissite
|
dissite
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/usr/bin/editsite
|
cat <<'EOF' >/usr/bin/editsite
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function edit_site() {
|
function edit_site() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user