Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name _;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name sickrage.home.network;
- location / {
- proxy_pass http://media.home.network:8081;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name couchpotato.home.network;
- location / {
- proxy_pass http://media.home.network:5050;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name deluge.home.network;
- location / {
- proxy_pass http://media.home.network:8112;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name plex.home.network;
- location /web {
- proxy_pass http://media.home.network: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;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name unifi.home.network;
- location / {
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Scheme $scheme;
- proxy_set_header Referer "";
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_pass https://unifi-controller.home.network:8443;
- }
- ssl_trusted_certificate /etc/nginx/ssl/home.network.pem;
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name phpmyadmin.home.network;
- root /var/www/phpmyadmin;
- index index.php index.html index.htm index.nginx-debian.html;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.3-fpm.sock;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name nextcloud.home.network;
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Robots-Tag none;
- add_header X-Download-Options noopen;
- add_header X-Permitted-Cross-Domain-Policies none;
- add_header 'Referrer-Policy' 'no-referrer';
- root /var/www/nextcloud/;
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location = /.well-known/carddav {
- return 301 $scheme://$host/remote.php/dav;
- }
- client_max_body_size 512M;
- fastcgi_buffers 64 4K;
- gzip on;
- gzip_vary on;
- gzip_comp_level 4;
- gzip_min_length 256;
- gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
- gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
- location / {
- rewrite ^ /index.php$request_uri;
- }
- location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
- deny all;
- }
- location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
- deny all;
- }
- location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
- fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param modHeadersAvailable true;
- fastcgi_param front_controller_active true;
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
- fastcgi_intercept_errors on;
- fastcgi_request_buffering off;
- }
- location ~ ^/(?:updater|ocs-provider)(?:$|/) {
- try_files $uri/ =404;
- index index.php;
- }
- location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$request_uri;
- add_header Cache-Control "public, max-age=15778463";
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Robots-Tag none;
- add_header X-Download-Options noopen;
- add_header X-Permitted-Cross-Domain-Policies none;
- access_log off;
- }
- location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$request_uri;
- access_log off;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name sync.home.network;
- location / {
- proxy_pass http://web.home.network:8800;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name ombi.home.network;
- location / {
- proxy_pass http://media.home.network:5000;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name unmanic.home.network;
- location / {
- proxy_pass http://media.home.network:8888;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/letsencrypt/live/ombi.lettuce.expert/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/ombi.lettuce.expert/privkey.pem; # managed by Certbot
- server_name ombi.lettuce.expert;
- location / {
- proxy_pass http://media.home.network:5000;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name netdata.home.network;
- location / {
- proxy_pass http://web.home.network:19999;
- }
- }
- server {
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/home.network.pem;
- ssl_certificate_key /etc/nginx/ssl/home.network.key;
- server_name tautulli.home.network;
- location / {
- proxy_pass http://media.home.network:8181;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement