Skip to content

Instantly share code, notes, and snippets.

View dawoodjee's full-sized avatar
🎯
Focusing on building delightful ai apps

Adam dawoodjee

🎯
Focusing on building delightful ai apps
View GitHub Profile
@dawoodjee
dawoodjee / mailcow-ReverseProxy
Created July 1, 2019 20:49 — forked from asifbacchus/headersSecurity.conf
My working NGINX config on the host machine acting as a reverse proxy for mailcow:dockerized. Redirects root URLs to SOGo for easy webmail access and allows users/administrators to access mailcow admin by going to URL/setup. Also handles invalid domains. Ex: NGINX serving mail.example.com but you don't want it answering example.com.
#######
### NGINX Reverse-Proxy to mailcow and SOGo
### Redirects root to SOGo and /setup to mailcow control panel
### Handles all SSL security
#######
## HTTP catch-all for invalid domain names (e.g. root domain "example.com")
server {