Replace quadlets with current configuration
This commit is contained in:
parent
4a359f7d5a
commit
792b32ea02
45 changed files with 273 additions and 18 deletions
34
mailu/config/NGINX-mailu-web.conf
Normal file
34
mailu/config/NGINX-mailu-web.conf
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
server {
|
||||
listen 443 ssl;
|
||||
server_name mail.{YOURDOMAIN.COM};
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/mail.{YOURDOMAIN.COM}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/mail.{YOURDOMAIN.COM}/privkey.pem;
|
||||
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:7071;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
sub_filter_once off;
|
||||
sub_filter '</head>' '<link rel="stylesheet" href="/custom.css"></head>';
|
||||
|
||||
|
||||
}
|
||||
|
||||
# custom theming stuff
|
||||
# location /background.jpg {
|
||||
# alias /var/www/html/nginx/background.jpg;
|
||||
# add_header Access-Control-Allow-Origin *;
|
||||
# }
|
||||
|
||||
|
||||
# location /custom.css {
|
||||
# alias /var/www/html/nginx/custom_mailu.css;
|
||||
# default_type text/css;
|
||||
# add_header Access-Control-Allow-Origin *;
|
||||
#}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue