Advertisement
daddy_jones

Nginx config

Nov 16th, 2022 (edited)
4,822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.17 KB | None | 0 0
  1. server {
  2.  
  3. listen                  443 ssl http2;
  4.     listen                  [::]:443 ssl http2;
  5.     server_name             noa.monkeypower.co.uk;
  6.     root                    /srv/http//noa;
  7.  
  8.     # SSL
  9.     ssl_certificate         /etc/letsencrypt/live/monkeypower.co.uk/fullchain.pem;
  10.     ssl_certificate_key     /etc/letsencrypt/live/monkeypower.co.uk/privkey.pem;
  11.     ssl_trusted_certificate /etc/letsencrypt/live/monkeypower.co.uk/chain.pem;
  12.  
  13.     # security
  14.     include                 nginxconfig.io/security.conf;
  15.  
  16.     # logging
  17.     access_log              /var/log/nginx/noa.monkeypower.co.uk.access.log;
  18.     error_log               /var/log/nginx/noa.monkeypower.co.uk.error.log warn;
  19.  
  20.     # index.html
  21.     index                   index.html;
  22.  
  23.     location /tools/ {
  24.         proxy_pass          http://localhost:8080/tools/;
  25.         proxy_set_header    X-Real-IP  $remote_addr;
  26.         proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
  27.         proxy_set_header    X-Forwarded-Proto $scheme;
  28.         proxy_set_header    Host $host;
  29.         proxy_pass_header   Content-Type;
  30.     }    
  31.  
  32. # additional config
  33.     include nginxconfig.io/general.conf;
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement