-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68b3962
commit a278959
Showing
5 changed files
with
58 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
media_proxy/ssl | ||
media_proxy/htpasswd | ||
*.swp | ||
|
||
|
||
conf.d | ||
fastcgi_params | ||
koi-utf | ||
koi-win | ||
mime.types | ||
scgi_params | ||
uwsgi_params | ||
win-utf | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,29 @@ | ||
nginx-plex-deluge-proxy | ||
======================= | ||
|
||
This is an NGINX configuration to allow plex and deluge reverse proxy. | ||
|
||
It gives you the following paths: | ||
|
||
* `https://X.X.X.X/plex` | ||
* `https://X.X.X.X/deluge` | ||
|
||
## Installation | ||
|
||
### Step 1 | ||
|
||
These files need to be copied/cloned into the NGINX config folder, for example `/etc/nginx` on Ubuntu. | ||
|
||
### Step 2 | ||
|
||
You then need to generate self signed SSL certificate: | ||
|
||
```bash | ||
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout media_proxy/ssl/nginx.key -out media_proxy/ssl/nginx.crt | ||
``` | ||
|
||
### Step 3 | ||
|
||
Create `media_proxy/htpasswd` file using [this handy site](http://www.htaccesstools.com/htpasswd-generator/) or native means, whatever you feel comfortable with. This username/password will be prompted for when you try to access the proxy. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
|
||
user nginx; | ||
worker_processes 1; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
keepalive_timeout 65; | ||
|
||
#gzip on; | ||
#gzip on; | ||
|
||
#include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/media_proxy/site-available.conf; | ||
include /etc/nginx/media_proxy/site-available.conf; | ||
} |