我有NGINX运行代理,我所有的usenet程序都链接到组织者
https://github.com/causefx/Organizr
效果很好。
我也有Phlex设置,将您的谷歌主页链接到Plex和Sonarr / Radarr
https://github.com/d8ahazard/Phlex
要使其工作,它需要自己的服务器端口。我没有成功将它添加到我的NGINX设置中并且必须安装xampp apache(它在端口72上运行)。
我真的不想同时运行apache和NGINX(我确实将所有内容都切换为apache但发现它的代理加载速度比NGINX慢)。 如何为端口72添加另一台服务器并让它正确加载PHP?
我将端口80和443链接到mydomain.com,我想将端口72链接到phlex.mydomain.com
这是我目前的设置
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name _;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl;
server_name mydomain.com, 192.168.0.21;
ssl_certificate mydomain.crt;
ssl_certificate_key mydomain.key;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_dhparam dhparam.pem;
location /{
root html;
index index.php
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /plexemail {
root C:\Plexemail\web;
}
location /server {
proxy_pass http://192.168.0.35:21;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /web {
proxy_pass http://127.0.0.1:32400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /nzbget {
proxy_pass http://192.168.0.21:6789;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /plexpy {
proxy_pass http://127.0.0.1:8181/plexpy;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /mylar {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /htpc {
proxy_pass http://127.0.0.1:8085;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /nzbhydra {
proxy_pass http://127.0.0.1:5075;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /sonarr {
proxy_pass http://127.0.0.1:8989;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /radarr {
proxy_pass http://127.0.0.1:7878;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /deluge {
proxy_pass http://127.0.0.1:7741/;
proxy_set_header X-Deluge-Base "/deluge/";
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /plexrequest{
proxy_pass http://127.0.0.1:3579;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /comics/admin {
proxy_pass http://localhost:2203/comics/admin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /comics {
proxy_pass http://192.168.0.21:2202;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /calendar{
proxy_pass http://192.168.0.21:8989/sonarr/feed/calendar/NzbDrone.ics?
apikey=ec4166d11c2e40baac11df7b483fa956;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME C:/nginx-1.8.0/html/$fastcgi_script_name;
include fastcgi_params;
}
}
}