Untitled

From ivaat, 1 Year ago, written in Plain Text, viewed 1 times. This paste will croak in 1 Second.
URL https://paste.ovh/view/012e972e Embed
Download Paste or View Raw
  1. server {
  2.     listen 80;
  3.     listen [::]:80;
  4.     listen 443 ssl;
  5.     listen [::]:443 ssl;
  6.     include snippets/cloud-signed.conf;
  7.     include snippets/ssl-params.conf;
  8.     server_name removed;
  9.  
  10.     root /var/www/invoice-ninja/public/;
  11.     index index.php index.html index.htm;
  12.     charset utf-8;
  13.  
  14.      # set max upload size
  15.     client_max_body_size 10G;
  16.     fastcgi_buffers 64 4K;
  17.  
  18.     gzip on;
  19.     gzip_vary on;
  20.     gzip_comp_level 4;
  21.     gzip_min_length 256;
  22.     gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
  23.     gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/
  24. vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-ma
  25. nifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
  26.  
  27.  
  28.     # display real ip in nginx logs when connected through reverse proxy via docker network
  29.     set_real_ip_from 172.0.0.0/8;
  30.     real_ip_header X-Forwarded-For;
  31.  
  32.  
  33.     location / {
  34.         #try_files $uri $uri/ /index.php?$query_string;
  35.         proxy_set_header Host $host;
  36.         proxy_set_header X-Forwarded-Proto $scheme;
  37.         proxy_set_header X-Real-IP $remote_addr;
  38.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  39.         proxy_pass https://192.168.1.22;
  40.     }
  41.  
  42.         #location /.well-known/carddav {
  43.         #return 301 $scheme://$host/remote.php/dav;
  44.         #}
  45.  
  46.         #location /.well-known/caldav {
  47.         #return 301 $scheme://$host/remote.php/dav;
  48.         #}
  49.  
  50.     location = /favicon.ico { access_log off; log_not_found off; }
  51.     location = /robots.txt  { access_log off; log_not_found off; }
  52.  
  53.     access_log  /var/log/nginx/cloud.access.log;
  54.     error_log   /var/log/nginx/cloud.error.log;
  55.  
  56.     location ~ \.php$ {
  57.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  58.         fastcgi_pass unix:/run/php/php7.3-fpm.sock;
  59.         fastcgi_index index.php;
  60.         include fastcgi_params;
  61.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  62.         fastcgi_intercept_errors off;
  63.         fastcgi_buffer_size 16k;
  64.         fastcgi_buffers 4 16k;
  65.     }
  66.  
  67.     location ~ /\.ht {
  68.         deny all;
  69.     }
  70.  
  71. }

Reply to "Untitled"

Here you can reply to the paste above

captcha