server_name ~^(www\.)?(.+)$;
client_max_body_size 20M;
############# Use the following for SSL ################
# ssl_certificate /usr/local/etc/nginx/nginx.crt;
# ssl_certificate_key /usr/local/etc/nginx/nginx.key;
########################################################
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;
proxy_pass http://localhost:3000;
proxy_redirect http://localhost:3000 https://$host;
rewrite ^/pdf/(.*)$ /$1 break;
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;
proxy_pass http://localhost:4005;
proxy_redirect http://localhost:4005 https://$host;
server_name ~^minio.(.+)$;
client_max_body_size 20M;
############# Use the following for SSL ################
# ssl_certificate /usr/local/etc/nginx/nginx.crt;
# ssl_certificate_key /usr/local/etc/nginx/nginx.key;
########################################################
proxy_set_header Host $http_host;
proxy_pass http://localhost:9000;