Skip to content
Snippets Groups Projects
Commit f07add9a authored by Blake Fitch's avatar Blake Fitch
Browse files

initial commit

parent 9860fe53
No related branches found
No related tags found
No related merge requests found
# Modeled after:
# https://serverfault.com/questions/1011561/docker-based-reverse-proxy-with-nginx-for-multiple-domains
FROM nginx:stable-alpine
#COPY etc-nginx-conf.d /etc/nginx/conf.d
EXPOSE 80/tcp
EXPOSE 443/tcp
CMD ["/bin/sh", "-c", "exec nginx -g 'daemon off;';"]
WORKDIR /usr/share/nginx/html
# https://serverfault.com/questions/1011561/docker-based-reverse-proxy-with-nginx-for-multiple-domains
upstream davrods {
server davrods:80;
}
upstream forms {
server forms:8080;
}
# Redirect all sites to https
# https://linuxize.com/post/redirect-http-to-https-in-nginx/
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
server_name tdavrods.mrdata.kyb.local;
#proxy_cache one;
#proxy_cache_key $request_method$request_uri;
#proxy_cache_min_uses 1;
#proxy_cache_methods GET;
#proxy_cache_valid 200 1y;
location / {
proxy_pass http://davrods/;
rewrite ^/davrods(.*)$ $1 break;
# https://stackoverflow.com/questions/28476643/default-nginx-client-max-body-size
client_max_body_size 100G;
}
listen 443 ssl;
ssl_certificate /etc-irods-ssl/chain.pem;
ssl_certificate_key /etc-irods-ssl/privkey.pem;
#include /etc/letsencrypt/options-ssl-nginx.conf;
}
server {
server_name tforms.mrdata.kyb.local;
#proxy_cache one;
#proxy_cache_key $request_method$request_uri;
#proxy_cache_min_uses 1;
#proxy_cache_methods GET;
#proxy_cache_valid 200 1y;
location / {
proxy_pass http://forms/;
rewrite ^/forms(.*)$ $1 break;
}
listen 443 ssl;
ssl_certificate /etc-irods-ssl/chain.pem;
ssl_certificate_key /etc-irods-ssl/privkey.pem;
#include /etc/letsencrypt/options-ssl-nginx.conf;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment