Created
May 22, 2021 16:32
-
-
Save esmcelroy/5ff9c187cdd7416eb4da7b16233cfcb7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include 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"'; | |
#access_log logs/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 80; | |
server_name localhost nibbler.esmcelroy.ca; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
#listen 80; | |
listen 443 ssl; | |
server_name localhost nibbler.esmcelroy.ca; | |
ssl_certificate esmcelroy.ca.crt; | |
ssl_certificate_key esmcelroy.ca.key; | |
ssl_session_cache shared:SSL:1m; | |
ssl_session_timeout 5m; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
#charset koi8-r; | |
#access_log logs/host.access.log main; | |
location / { | |
root html; | |
index index.html index.htm; | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
location /ohm/ { | |
proxy_pass http://127.0.0.1:8085/; | |
} | |
location /sonarr { | |
proxy_pass http://127.0.0.1:8989/sonarr; | |
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 /lidarr { | |
proxy_pass http://127.0.0.1:8686/lidarr; | |
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 /radarr { | |
proxy_pass http://127.0.0.1:7878/radarr; | |
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 /tautulli/ { | |
proxy_pass http://localhost:8181/tautulli/; | |
proxy_http_version 1.1; | |
} | |
location /nzb/ { | |
proxy_pass http://127.0.0.1:8090/sabnzbd/; | |
} | |
location /qbt/ { | |
proxy_pass http://127.0.0.1:8080/; | |
proxy_http_version 1.1; | |
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 /ombi { | |
proxy_pass http://127.0.0.1:38084/ombi; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-Host $server_name; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Ssl on; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_read_timeout 90; | |
} | |
location /jackett/ { | |
proxy_pass http://127.0.0.1:9117/jackett/; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment