Created
April 9, 2020 18:36
-
-
Save TheFarmingBunny/bdfec4504e5dbf9e8f1cedbeb1df596e 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
##Public services | |
#Organizr | |
server { | |
server_name organizr.romaingrosjean.net; | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
# With php-fpm (or other unix sockets): | |
fastcgi_pass unix:/run/php/php7.3-fpm.sock; | |
# With php-cgi (or other tcp sockets): | |
#fastcgi_pass 127.0.0.1:9000; | |
} | |
root /var/www/Organizr; | |
index index.php; | |
listen 443 ssl http2; | |
ssl_certificate /var/www/public.pem; | |
ssl_certificate_key /var/www/private.key; | |
ssl_client_certificate /var/www/cloudflare.cert; | |
ssl_verify_client on; | |
} | |
#Plex reverse proxy | |
server { | |
server_name plex.romaingrosjean.net; | |
location / { | |
proxy_pass http://192.168.2.2:32400/; | |
} | |
listen 443 ssl http2; | |
ssl_certificate /var/www/public.pem; | |
ssl_certificate_key /var/www/private.key; | |
ssl_client_certificate /var/www/cloudflare.cert; | |
ssl_verify_client on; | |
} | |
#Deluge reverse proxy | |
server { | |
server_name deluge.romaingrosjean.net; | |
location / { | |
proxy_pass http://192.168.2.2:8112; | |
} | |
listen 443 ssl http2; | |
ssl_certificate /var/www/public.pem; | |
ssl_certificate_key /var/www/private.key; | |
ssl_client_certificate /var/www/cloudflare.cert; | |
ssl_verify_client on; | |
} | |
#Minecraft service management reverse proxy | |
server { | |
server_name mcod.romaingrosjean.net; | |
location / { | |
proxy_pass http://localhost:8080; | |
} | |
listen 443 ssl http2; | |
ssl_certificate /var/www/public.pem; | |
ssl_certificate_key /var/www/private.key; | |
ssl_client_certificate /var/www/cloudflare.cert; | |
ssl_verify_client on; | |
} | |
#filerun | |
server { | |
server_name cloud.romaingrosjean.net; | |
location / { | |
proxy_pass https://192.168.2.2:443; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $server_name; | |
proxy_set_header X-Forwarded-Proto https; | |
proxy_set_header X-Forwarder-Proto 443; | |
} | |
listen 443 ssl http2; | |
ssl_certificate /var/www/public.pem; | |
ssl_certificate_key /var/www/private.key; | |
ssl_client_certificate /var/www/cloudflare.cert; | |
ssl_verify_client on; | |
} | |
#Organizr (LAN) | |
server { | |
listen 80 default_server; | |
allow 192.168.0.0/24; | |
allow 192.168.1.0/24; | |
deny all; | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/run/php/php7.3-fpm.sock; | |
} | |
root /var/www/Organizr; | |
index index.php; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment