Switch to RAP

This commit is contained in:
stebifan 2018-08-28 16:13:22 +02:00
parent b2ba67faf3
commit 1b01125f01
10 changed files with 219 additions and 0 deletions

View File

@ -0,0 +1,33 @@
version: '2'
services:
Rancher-Active-Proxy:
image: adi90x/rancher-active-proxy
environment:
DEFAULT_HOST: ${DEFAULT_HOST}
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
CRON: ${CRON}
DEBUG: ${DEBUG}
DEFAULT_PORT: ${DEFAULT_PORT}
stdin_open: true
volumes:
- proxy-htpasswd:/etc/nginx/htpasswd
- proxy-vhost:/etc/nginx/vhost.d
- proxy-le:/etc/letsencrypt
- proxy-html:/usr/share/nginx/html
tty: true
ports:
- ${DEFAULT_PORT}:80/tcp
- 443:443/tcp
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
volumes:
proxy-htpasswd:
driver: rancher-nfs
proxy-vhost:
driver: rancher-nfs
proxy-le:
driver: rancher-nfs
proxy-html:
driver: rancher-nfs

View File

@ -0,0 +1,23 @@
.catalog:
name: "Initial Version"
version: "v0.0.2"
questions:
- variable: DEFAULT_HOST
label: "Default Virtual Host to use"
type: string
- variable: DEFAULT_EMAIL
label: "Default Email to use for Letsencrypt"
default: "info@tstgmbh.com"
type: string
- variable: DEFAULT_PORT
label: "Default Port to use"
default: "80"
type: string
- variable: CRON
label: "Auto renew cron like setup"
default: "0 2 * * *"
type: string
- variable: DEBUG
label: "Set to true to enable debug"
default: "False"
type: string

View File

@ -0,0 +1,34 @@
version: '2'
services:
Rancher-Active-Proxy:
image: adi90x/rancher-active-proxy
environment:
DEFAULT_HOST: ${DEFAULT_HOST}
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
CRON: ${CRON}
DEBUG: ${DEBUG}
DEFAULT_PORT: ${DEFAULT_PORT}
stdin_open: true
volumes:
- proxy-htpasswd:/etc/nginx/htpasswd
- proxy-vhost:/etc/nginx/vhost.d
- proxy-le:/etc/letsencrypt
- proxy-html:/usr/share/nginx/html
- proxy-confd:/etc/nginx/conf.d
tty: true
ports:
- ${DEFAULT_PORT}:80/tcp
- 443:443/tcp
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
volumes:
proxy-htpasswd:
driver: rancher-nfs
proxy-vhost:
driver: rancher-nfs
proxy-le:
driver: rancher-nfs
proxy-html:
driver: rancher-nfs

View File

@ -0,0 +1,23 @@
.catalog:
name: "Initial Version"
version: "v0.0.3"
questions:
- variable: DEFAULT_HOST
label: "Default Virtual Host to use"
type: string
- variable: DEFAULT_EMAIL
label: "Default Email to use for Letsencrypt"
default: "info@tstgmbh.com"
type: string
- variable: DEFAULT_PORT
label: "Default Port to use"
default: "80"
type: string
- variable: CRON
label: "Auto renew cron like setup"
default: "0 2 * * *"
type: string
- variable: DEBUG
label: "Set to true to enable debug"
default: "False"
type: string

View File

@ -0,0 +1,36 @@
version: '2'
services:
Rancher-Active-Proxy:
image: adi90x/rancher-active-proxy
environment:
DEFAULT_HOST: ${DEFAULT_HOST}
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
CRON: ${CRON}
DEBUG: ${DEBUG}
DEFAULT_PORT: ${DEFAULT_PORT}
stdin_open: true
volumes:
- proxy-htpasswd:/etc/nginx/htpasswd
- proxy-vhost:/etc/nginx/vhost.d
- proxy-le:/etc/letsencrypt
- proxy-html:/usr/share/nginx/html
- proxy-certs:/etc/nginx/certs
tty: true
ports:
- ${DEFAULT_PORT}:80/tcp
- 443:443/tcp
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
volumes:
proxy-htpasswd:
driver: rancher-nfs
proxy-vhost:
driver: rancher-nfs
proxy-le:
driver: rancher-nfs
proxy-html:
driver: rancher-nfs
proxy-certs:
driver: rancher-nfs

View File

@ -0,0 +1,23 @@
.catalog:
name: "Initial Version"
version: "v0.0.4"
questions:
- variable: DEFAULT_HOST
label: "Default Virtual Host to use"
type: string
- variable: DEFAULT_EMAIL
label: "Default Email to use for Letsencrypt"
default: "info@tstgmbh.com"
type: string
- variable: DEFAULT_PORT
label: "Default Port to use"
default: "80"
type: string
- variable: CRON
label: "Auto renew cron like setup"
default: "0 2 * * *"
type: string
- variable: DEBUG
label: "Set to true to enable debug"
default: "False"
type: string

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

@ -0,0 +1,7 @@
name: Rancher Active Proxy
description: "Automatic Active Proxy for Rancher with Let's Encrypt support"
version: "v0.0.4"
category: Proxy
maintainer: AdrienM
license: MIT
projectURl: "https://github.com/adi90x/rancher-active-proxy"

View File

@ -0,0 +1,20 @@
version: '2'
services:
website:
build: https://github.com/Freifunk-Rhein-Sieg/freifunk-rhein-sieg.net.git
volumes:
- web:/project
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
rap.host: ${DOMAIN}
rap.le_host: ${DOMAIN}
rap.client_max_body_size: "10G"
volumes:
web:
driver: local
zertifikate:
driver: local

View File

@ -0,0 +1,20 @@
version: '2'
catalog:
name: ffrs-website
version: 2
description: Freifunk Rhein Sieg Webseite
questions:
- variable: DOMAIN
default: freifunk-rhein-sieg.net
label: Domain
required: true
type: string
services:
website:
scale: 1
start_on_create: true