Blue Mind client access proxy
server {
listen 80;
server_name hera.romulus.lan;
location / {
rewrite ^ https://hera.romulus.lan$request_uri? redirect;
}
location /soap {
proxy_pass http://127.0.0.1:8080/soap;
client_max_body_size 10m;
}
}
server {
listen 443;
server_name hera.romulus.lan;
ssl on;
ssl_certificate /etc/ssl/certs/bm_cert.pem;
ssl_certificate_key /etc/ssl/certs/bm_cert.pem;
ssl_session_timeout 5m;
error_page 401 /errors-pages/401.html;
location / {
if ($request_uri ~ ^/errors-pages) {
break;
}
proxy_pass [http://127.0.0.1:8079/](http://127.0.0.1:8079/);
}
location /errors-pages {
alias /usr/share/bm-client-access/errors-pages;
}
location /templates/ {
proxy_pass http://127.0.0.1:8079/templates/;
}
location /webmail/ {
client_max_body_size 0;
proxy_pass http://127.0.0.1:8079/webmail/;
}
location /adminconsole/ {
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain application/xml text/css text/javascript;
gzip_disable “MSIE [1-6].”;
proxy_pass [http://127.0.0.1:8079/adminconsole/](http://127.0.0.1:8079/adminconsole/);
client_max_body_size 10m;
}
location /setup/ {
auth_basic “Blue Mind Setup”;
auth_basic_user_file /etc/nginx/sw.htpasswd;
proxy_pass http://127.0.0.1:8080/setup/;
}
location /soap {
proxy_pass http://127.0.0.1:8080/soap;
client_max_body_size 10m;
}
location /services {
proxy_pass http://127.0.0.1:8085/services;
client_max_body_size 10m;
}
location /freebusy {
proxy_pass http://127.0.0.1:8085/freebusy;
}
location /Microsoft-Server-ActiveSync {
proxy_pass http://127.0.0.1:8082/Microsoft-Server-ActiveSync;
proxy_read_timeout 1200s;
client_max_body_size 10m;
}
location /cal/ {
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain application/xml text/css text/javascript;
gzip_disable “MSIE [1-6].”;
proxy_pass [http://127.0.0.1:8079/cal/](http://127.0.0.1:8079/cal/);
}
location /contact/ {
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain application/xml text/css text/javascript;
gzip_disable “MSIE [1-6].”;
proxy_pass http://127.0.0.1:8079/contact/;
}
location /settings/ {
proxy_pass http://127.0.0.1:8079/settings/;
}
location /help/ {
proxy_pass http://127.0.0.1:8099/help/;
}
}
p://127.0.0.1:8099/help/;
}
}