Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Functional vHost:
- # ------------------------------------------------------------
- # foo.example.com
- # ------------------------------------------------------------
- server {
- set $forward_scheme http;
- set $server "notifications_app_1";
- set $port 8000;
- listen 80;
- #listen [::]:80;
- listen 443 ssl http2;
- #listen [::]:443;
- server_name foo.example.com;
- # Let's Encrypt SSL
- include conf.d/include/letsencrypt-acme-challenge.conf;
- include conf.d/include/ssl-ciphers.conf;
- ssl_certificate /etc/letsencrypt/live/npm-2/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/npm-2/privkey.pem;
- # Force SSL
- include conf.d/include/force-ssl.conf;
- access_log /data/logs/proxy-host-3_access.log proxy;
- error_log /data/logs/proxy-host-3_error.log warn;
- location / {
- # Access Rules
- allow 192.168.0.0/16;
- allow 172.16.0.0/12;
- allow 10.0.0.0/8;
- deny all;
- # Access checks must...
- satisfy all;
- # Proxy!
- include conf.d/include/proxy.conf;
- }
- # Custom
- include /data/nginx/custom/server_proxy[.]conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment