ℹ️ Your data is safe here... unless you make the SNIP gods angry. And let's just say they have a really bad sense of humor.

From TonyM, 6 Years ago, written in Plain Text.
Embed
  1. server {
  2.         listen 80;
  3.         listen [::]:80;
  4.         server_name logs.mydomain.com;
  5.         return 301 https://$server_name$request_uri;
  6. }
  7.  
  8. server {
  9.         listen 443 ssl http2;
  10.         listen [::]:443 ssl http2;
  11.         server_name logs.mydomain.com;
  12.  
  13.         large_client_header_buffers 4 16k;
  14.  
  15.         location / {
  16.                 proxy_set_header    Host $http_host;
  17.                 proxy_set_header    X-Forwarded-Host $host;
  18.                 proxy_set_header    X-Forwarded-Server $host;
  19.                 proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
  20.                 proxy_set_header    X-Graylog-Server-URL https://logs.mydomain.com/api;
  21.                 proxy_pass          http://127.0.0.1:9000;
  22.         }
  23.  
  24.         error_page 502 /502.html;
  25.         location /502.html {
  26.                 root /srv/http/localhost;
  27.         }
  28. }
  29.  
captcha