Found this example:
Code: Select all
##################################
# https://svn.wzuup.com/
server {
listen 443;
ssl on;
ssl_certificate wzuup.crt;
ssl_certificate_key wzuup.key;
server_name svn.wzuup.com;
access_log logs/svn.access.log;
auth_basic "Wzuup Subversion";
auth_basic_user_file htpasswd;
location /wzuup {
proxy_pass http://127.0.0.1:9000;
if ($http_destination ~ "^http://(.+)") {
rewrite ^(.*)$ https://$1 permanent;
}
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 https;
proxy_set_header Host $http_host;
proxy_redirect false;
}
}
Seems too complex to be a generic fit all solution to my limited eye on this sort of stuff. I'll guess anyone deploying svn would be savvy enough to figure how to use nginx with it themselves with whatever custom stuff they need to do.
What do you think?