Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (69 sloc) 2.28 KB
upstream ezseed {
server {{variableport}};
}
# Configuration acces non SSL
server {
listen 80;
server_name localhost;
location {{basepath}} {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_max_temp_file_size 0;
proxy_pass http://ezseed/;
proxy_redirect off;
}
location /rutorrent {
root /var/www;
index index.php index.html index.htm;
server_tokens off;
auth_basic "Merci de vous identifier";
auth_basic_user_file "/usr/local/opt/ezseed/rutorrent_passwd";
}
location ~ \.php$ {
root "/var/www";
fastcgi_pass unix:/etc/phpcgi/php-cgi-ezseed.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
# Configuration acces SSL
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate /usr/local/opt/ezseed/ezseed.pem;
ssl_certificate_key /usr/local/opt/ezseed/ezseed.key;
add_header Strict-Transport-Security max-age=500;
location {{basepath}} {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_max_temp_file_size 0;
proxy_pass http://ezseed/;
proxy_redirect off;
}
location /rutorrent {
root /var/www;
index index.php index.html index.htm;
server_tokens off;
auth_basic "Merci de vous identifier";
auth_basic_user_file "/usr/local/opt/ezseed/rutorrent_passwd";
}
location ~ \.php$ {
root "/var/www";
fastcgi_pass unix:/etc/phpcgi/php-cgi-ezseed.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
You can’t perform that action at this time.