Re: [atomic] Nginx 0.7.64
Posted: Thu Mar 18, 2010 4:07 pm
This is a bit over my head really.
Found this example:
With the requirements for certificates and passwords, I think this probably has to be something a user has to put in themselves rather than be part of a default installation. Similar I think to why the ssl.conf that comes with the nginx installation from your repo is commented out and is just there as a guide.
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?
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?