Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nginx Reverse proxy #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .templates/adminer/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
restart: unless-stopped
ports:
- 9080:8080
environment:
- VIRTUAL_HOST=~^adminer\..*\.xip\.io
- VIRTUAL_PORT=9080
3 changes: 3 additions & 0 deletions .templates/blynk_server/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
- 9443:9443
volumes:
- ./volumes/blynk_server/data:/data
environment:
- VIRTUAL_HOST=~^blynk\..*\.xip\.io
- VIRTUAL_PORT=8180

3 changes: 3 additions & 0 deletions .templates/diyhue/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# - "443:443/tcp"
env_file:
- ./services/diyhue/diyhue.env
environment:
- VIRTUAL_HOST=~^diyhue\..*\.xip\.io
- VIRTUAL_PORT=8070
volumes:
- ./volumes/diyhue/:/opt/hue-emulator/export/
restart: unless-stopped
3 changes: 3 additions & 0 deletions .templates/grafana/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
- 3000:3000
env_file:
- ./services/grafana/grafana.env
environment:
- VIRTUAL_HOST=~^grafana\..*\.xip\.io
- VIRTUAL_PORT=3000
volumes:
- ./volumes/grafana/data:/var/lib/grafana
- ./volumes/grafana/log:/var/log/grafana
6 changes: 5 additions & 1 deletion .templates/homebridge/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
container_name: homebridge
image: oznu/homebridge:no-avahi-arm32v6
restart: unless-stopped
network_mode: host
ports:
- 8380:8080
env_file: ./services/homebridge/homebridge.env
environment:
- VIRTUAL_HOST=~^homebridge\..*\.xip\.io
- VIRTUAL_PORT=8380
volumes:
- ./volumes/homebridge:/homebridge
3 changes: 3 additions & 0 deletions .templates/influxdb/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
- 2003:2003
env_file:
- ./services/influxdb/influxdb.env
environment:
- VIRTUAL_HOST=~^influxdb\..*\.xip\.io
- VIRTUAL_PORT=8086
volumes:
- ./volumes/influxdb/data:/var/lib/influxdb
- ./backups/influxdb/db:/var/lib/influxdb/backup
3 changes: 3 additions & 0 deletions .templates/nextcloud/service.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
- nextcloud_db
links:
- nextcloud_db
environment:
- VIRTUAL_HOST=~^nextcloud\..*\.xip\.io
- VIRTUAL_PORT=9321

nextcloud_db:
image: linuxserver/mariadb
Expand Down
27 changes: 27 additions & 0 deletions .templates/nginx-proxy/directoryfix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
if [ ! -d ./volumes/nginx-proxy/nginx-conf ]; then
sudo mkdir -p ./volumes/nginx-proxy/nginx-conf
sudo chown -R pi:pi ./volumes/nginx-proxy/nginx-conf
fi

if [ ! -d ./volumes/nginx-proxy/nginx-vhost ]; then
sudo mkdir -p ./volumes/nginx-proxy/nginx-vhost
sudo chown -R pi:pi ./volumes/nginx-proxy/nginx-vhost
fi

if [ ! -d ./volumes/nginx-proxy/html ]; then
sudo mkdir -p ./volumes/nginx-proxy/html
sudo chown -R pi:pi ./volumes/nginx-proxy/html
fi

if [ ! -d ./volumes/nginx-proxy/certs ]; then
sudo mkdir -p ./volumes/nginx-proxy/certs
sudo chown -R pi:pi ./volumes/nginx-proxy/certs
fi

if [ ! -d ./volumes/nginx-proxy/log ]; then
sudo mkdir -p ./volumes/nginx-proxy/log
sudo chown -R pi:pi ./volumes/nginx-proxy/log
fi

cp ./services/nginx-proxy//nginx.tmpl ./volumes/nginx-proxy
Loading