From librenms, 6 Years ago, written in Plain Text.
Embed
  1. #server {
  2. # listen      80;
  3. # server_name web01.lathwood.uk;
  4. # return 301 https://$host$request_uri;
  5. #}
  6.  
  7. server {
  8.  listen 443 ssl http2;
  9.  server_name web01.lathwood.uk;
  10.  root        /opt/librenms/html;
  11.  index       index.php;
  12.  ssl_certificate /etc/letsencrypt/live/web01.lathwood.uk/cert.pem;
  13.  ssl_certificate_key /etc/letsencrypt/live/web01.lathwood.uk/privkey.pem;
  14.  access_log  /opt/librenms/logs/access_log;
  15.  error_log   /opt/librenms/logs/error_log;
  16.  gzip on;
  17.  gzip_types text/css application/javascript text/javascript pplication/x-javascript text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
  18.  
  19.  location / {
  20.   try_files $uri $uri/ @librenms;
  21. #    auth_basic "Restricted";
  22. #    auth_basic_user_file /etc/nginx/.htpasswd;
  23.  }
  24.  location ~ \.php {
  25.   include fastcgi.conf;
  26.   fastcgi_split_path_info ^(.+\.php)(/.+)$;
  27.   fastcgi_pass 127.0.0.1:9000;
  28.  }
  29.  location ~ /\.ht {
  30.   deny all;
  31.  }
  32.  location @librenms {
  33.   rewrite api/v0(.*)$ /api_v0.php/$1 last;
  34.   rewrite ^(.+)$ /index.php/$1 last;
  35.  }
  36. }
  37.  

Replies to Untitled rss

Title Name Language When
Re: Untitled reload.go.ro text 3 Years ago.
Re: Untitled Blush Eider text 3 Years ago.