Guest User

Functional vHost

a guest
Dec 30th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Functional vHost:
  2.  
  3. # ------------------------------------------------------------
  4. # foo.example.com
  5. # ------------------------------------------------------------
  6.  
  7.  
  8. server {
  9. set $forward_scheme http;
  10. set $server "notifications_app_1";
  11. set $port 8000;
  12.  
  13. listen 80;
  14. #listen [::]:80;
  15.  
  16. listen 443 ssl http2;
  17. #listen [::]:443;
  18.  
  19. server_name foo.example.com;
  20.  
  21. # Let's Encrypt SSL
  22. include conf.d/include/letsencrypt-acme-challenge.conf;
  23. include conf.d/include/ssl-ciphers.conf;
  24. ssl_certificate /etc/letsencrypt/live/npm-2/fullchain.pem;
  25. ssl_certificate_key /etc/letsencrypt/live/npm-2/privkey.pem;
  26.  
  27. # Force SSL
  28. include conf.d/include/force-ssl.conf;
  29.  
  30. access_log /data/logs/proxy-host-3_access.log proxy;
  31. error_log /data/logs/proxy-host-3_error.log warn;
  32.  
  33. location / {
  34.  
  35. # Access Rules
  36. allow 192.168.0.0/16;
  37. allow 172.16.0.0/12;
  38. allow 10.0.0.0/8;
  39. deny all;
  40.  
  41. # Access checks must...
  42.  
  43. satisfy all;
  44.  
  45. # Proxy!
  46. include conf.d/include/proxy.conf;
  47. }
  48.  
  49. # Custom
  50. include /data/nginx/custom/server_proxy[.]conf;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment