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 #174

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a39d01c
Adds a Gitea container to IOTstack
Paraphraser Jan 12, 2020
eb9b982
Added filter.acl file to mosquitto/config
Tomasmerca Jan 15, 2020
c4adb55
Created empty file whit example filter
Tomasmerca Jan 15, 2020
89f4647
Added options for password and filter config
Tomasmerca Jan 15, 2020
72e6345
Update menu.sh
RavHilton Feb 6, 2020
98101cd
menu.sh: Fix small typo in msg "Restart Required"
gmacario Mar 23, 2020
4a1a0c1
Add Nginx Reverse proxy
robertcsakany Apr 13, 2020
b068114
first import
Willem-Dekker Apr 19, 2020
f6571ae
added index.md
Willem-Dekker Apr 19, 2020
96454c9
Updated styling of existing pages
Willem-Dekker Apr 19, 2020
7bf68e7
Updated styling of existing pages
Willem-Dekker Apr 19, 2020
1646a7a
Merge pull request #20 from Willem-Dekker/mkdocks
SensorsIot Apr 19, 2020
a9afc96
Update README.md
SensorsIot Apr 19, 2020
50cbf52
Update README.md
SensorsIot Apr 19, 2020
0b2385b
Merge pull request #16 from SensorsIot/pr/161
Willem-Dekker Apr 19, 2020
5d0c85a
Changed each menu item to be on a separate line to make merges easier.
Apr 19, 2020
4f8a47d
Merge branch 'armhf_keys_menu_lines' into pr/126
Apr 20, 2020
52ddbcb
Changed docker-compose yml file version to 3.6.
Apr 20, 2020
d464d0f
Merge pull request #26 from SensorsIot/armhf_keys_menu_lines
Willem-Dekker Apr 20, 2020
65e48e0
Merge pull request #7 from SensorsIot/pr/139
Willem-Dekker Apr 20, 2020
67e0056
Merge pull request #3 from SensorsIot/pr/126
Willem-Dekker Apr 20, 2020
15d840b
Update README.md
Slyke Apr 20, 2020
a3078f2
Merge pull request #27 from SensorsIot/readme-update
Willem-Dekker Apr 20, 2020
d86a5cd
Merge pull request #4 from SensorsIot/pr/130
Willem-Dekker Apr 20, 2020
5940275
Merge branch 'master' into feature/AddNginxProxy
robertcsakany Apr 20, 2020
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
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- master

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
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
1 change: 1 addition & 0 deletions .templates/gitea/gitea.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# initially empty
14 changes: 14 additions & 0 deletions .templates/gitea/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
gitea:
container_name: gitea
image: kapdap/gitea-rpi
restart: unless-stopped
user: "0"
ports:
- "7920:3000/tcp"
- "2222:22/tcp"
env_file:
- ./services/gitea/gitea.env
volumes:
- ./volumes/gitea/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
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
6 changes: 6 additions & 0 deletions .templates/mosquitto/filter.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
user admin
topic read #
topic write #

pattern read #
pattern write #
6 changes: 6 additions & 0 deletions .templates/mosquitto/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log

#Uncomment to enable passwords
#password_file /mosquitto/config/pwfile
#allow_anonymous false

#Uncomment to enable filters
#acl_file /mosquitto/config/filter.acl
1 change: 1 addition & 0 deletions .templates/mosquitto/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
- ./volumes/mosquitto/data:/mosquitto/data
- ./volumes/mosquitto/log:/mosquitto/log
- ./services/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./services/mosquitto/filter.acl:/mosquitto/config/filter.acl

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