Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 default_server ssl http2;
- server_name domaine1.com www.domaine1.com;
- ssl_certificate /etc/letsencrypt/live/domaine1.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/domaine1.com/privkey.pem;
- index index.html index.php;
- charset utf-8;
- client_max_body_size 10M;
- include /etc/nginx/conf.d/ciphers.conf;
- access_log /var/log/nginx/rutorrent-access.log combined;
- error_log /var/log/nginx/rutorrent-error.log error;
- error_page 500 502 503 504 /50x.html;
- auth_basic "seedbox";
- auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
- root /var/www;
- location = /favicon.ico {
- access_log off;
- log_not_found off;
- }
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- location ~ \.php$ {
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- }
- location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
- expires 30d;
- access_log off;
- }
- location ~* \.(eot|ttf|woff|svg)$ {
- add_header Acccess-Control-Allow-Origin *;
- }
- ## Config accueil serveur ##
- location ^~ / {
- root /var/www/base;
- include /etc/nginx/conf.d/php.conf;
- include /etc/nginx/conf.d/cache.conf;
- satisfy any;
- allow all;
- }
- ## Config rutorrent ##
- location /rutorrent {
- try_files $uri $uri/ /index.html;
- }
- location ~ ^/rutorrent/(conf|share)/(.+)$ {
- deny all;
- }
- ## Config munin ##
- location /graph {
- }
- location /graph/img {
- error_log /dev/null crit;
- }
- location /monitoring {
- auth_basic "Monitoring";
- auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_torrent";
- }
- location ^~ /nginx_status {
- stub_status on;
- access_log off;
- satisfy any;
- allow 127.0.0.1;
- deny all;
- }
- ## Config seedbox-manager ##
- location /seedbox-manager {
- try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
- }
- ## Config utilisateurs ##
- location /TORRENT {
- include scgi_params;
- scgi_pass 127.0.0.1:5001;
- auth_basic "seedbox";
- auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_torrent";
- }
- location ~ /.well-known {
- allow all;
- }
- }
- server {
- listen 80;
- server_name domaine1.com www.domaine1.com;
- return 301 https://$host$request_uri;
- }
- server {
- listen 80;
- server_name static-paris-fr.domaine2.com;
- root /var/www/mirror;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement