mirror of
https://github.com/elisspace/rtinst.git
synced 2026-09-21 01:57:22 +00:00
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name <Server IP>;
|
|
root /var/www;
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
index index.html index.php index.htm;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /rutorrent {
|
|
auth_basic "Restricted";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
include /etc/nginx/conf.d/php;
|
|
include /etc/nginx/conf.d/cache;
|
|
}
|
|
|
|
#include /etc/nginx/conf.d/rtdload;
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
|
|
server_name <Server IP>;
|
|
root /var/www;
|
|
index index.html index.php index.htm;
|
|
|
|
ssl_certificate /etc/ssl/ruweb.crt;
|
|
ssl_certificate_key /etc/ssl/ruweb.key;
|
|
ssl_session_timeout 5m;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location /rutorrent {
|
|
auth_basic "Restricted";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
include /etc/nginx/conf.d/php;
|
|
include /etc/nginx/conf.d/cache;
|
|
}
|
|
|
|
#include /etc/nginx/conf.d/rtdload;
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|
|
}
|