Last active
August 28, 2023 09:49
-
-
Save shreddedbacon/916caee78f99105bea411fafcd27f2b3 to your computer and use it in GitHub Desktop.
Omada controller with nginx reverse proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: nginx-proxy | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf | |
- ./omada.crt:/etc/ssl/certs/omada.crt | |
- ./omada.key:/etc/ssl/certs/omada.key | |
restart: always | |
network_mode: host | |
ports: | |
- 443:443 | |
- 80:80 | |
omada: | |
image: shreddedbacon/omada-controller:3.2.1 | |
container_name: omada-controller | |
restart: always | |
network_mode: host | |
volumes: | |
- "~/omada/omada-data:/opt/tplink/EAPController/data" | |
- "~/omada/omada-work:/opt/tplink/EAPController/work" | |
- "~/omada/omada-logs:/opt/tplink/EAPController/logs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { } | |
http { | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name omada.stampyhome.com; | |
ssl_certificate /etc/ssl/certs/omada.crt; | |
ssl_certificate_key /etc/ssl/certs/omada.key; | |
location / { | |
proxy_pass https://localhost:8043; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment