feat: init commit
This commit is contained in:
commit
0289360eb6
16 changed files with 449 additions and 0 deletions
27
templates/config.cupyer-hook.j2
Normal file
27
templates/config.cupyer-hook.j2
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
|
||||
dns:
|
||||
clientId: {{ cuyper__dns_clientId }}
|
||||
accessToken: {{ cuyper__dns_accessToken }}
|
||||
type: {{ cuyper__dns_type }}
|
||||
name: {{ cuyper__dns_name }}
|
||||
|
||||
gateway: {{ cuyper__gateway_hostname }}
|
||||
|
||||
portainer:
|
||||
hostName: {{ cuyper__portainer_hostName }}
|
||||
url: {{ cuyper__portainer_url }}
|
||||
username: {{ cuyper__portainer_username }}
|
||||
password: {{ cuyper__portainer_password }}
|
||||
endPointId: {{ cuyper__portainer_endPointId }}
|
||||
|
||||
smtp:
|
||||
hostName: {{ cuyper__smtp_hostName }}
|
||||
port: {{ cuyper__smtp_port }}
|
||||
user: {{ cuyper__smtp_user }}
|
||||
pass: {{ cuyper__smtp_pass }}
|
||||
from: {{ cuyper__smtp_from }}
|
||||
|
||||
apikey: {{ cuyper__apikey }}
|
||||
|
||||
knownzones: {{ cuyper__knownzones }}
|
||||
23
templates/docker-compose.cuyper-hook.j2
Normal file
23
templates/docker-compose.cuyper-hook.j2
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
services:
|
||||
loadbalancer:
|
||||
build: cuyper-hook/
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "{{ cuyper__cuyper_storage_path }}/letsencrypt:/etc/letsencrypt"
|
||||
- "{{ cuyper__cuyper_storage_path }}/nginx:/etc/nginx/conf.d/"
|
||||
networks:
|
||||
loadbalance-network:
|
||||
internal_network:
|
||||
|
||||
networks:
|
||||
loadbalance-network:
|
||||
external: true
|
||||
name: loadbalance-network
|
||||
driver: overlay
|
||||
attachable: true
|
||||
internal_network:
|
||||
external: false
|
||||
internal: true
|
||||
16
templates/docker-compose.portainer.j2
Normal file
16
templates/docker-compose.portainer.j2
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:2.44.0
|
||||
restart: always
|
||||
volumes:
|
||||
- "{{ cuyper__portainer_storage_path }}:/data"
|
||||
- "{{ cuyper__portainer_docker_sock }}:/var/run/docker.sock"
|
||||
networks:
|
||||
internal_network:
|
||||
aliases:
|
||||
- portainer
|
||||
|
||||
networks:
|
||||
internal_network:
|
||||
external: false
|
||||
internal: true
|
||||
2
templates/env.cuyper-hook.j2
Normal file
2
templates/env.cuyper-hook.j2
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CONFIG_FILE={{ cuyper__config_file }}
|
||||
VHOSTS_FILE={{ cuyper__vhosts_file }}
|
||||
27
templates/nginx-hooks.conf.j2
Normal file
27
templates/nginx-hooks.conf.j2
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
server {
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
|
||||
server_name {{ cuyper__hostname }};
|
||||
access_log /var/log/nginx/{{ cuyper__hostname }}.access.log;
|
||||
error_log /var/log/nginx/{{ cuyper__hostname }}.error.log;
|
||||
|
||||
client_max_body_size 128M;
|
||||
|
||||
location /hooks/ {
|
||||
proxy_pass http://localhost:3000/;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
location /portainer/ {
|
||||
proxy_pass http://portainer:9000/;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue