daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server;
  4.     client_max_body_size 1000M;
  5.     root /var/www/html;
  6.     index index.php index.html index.htm index.nginx-debian.html;
  7.     server_name _;
  8.     location / {
  9.         client_max_body_size 1000M;
  10.         try_files $uri $uri/ =404;
  11.                 add_header 'Access-Control-Allow-Origin' '*';
  12.                 add_header 'Access-Control-Allow-Credentials' 'true';
  13.                 add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
  14.         if ($request_method = 'OPTIONS') {
  15.             add_header 'Access-Control-Allow-Headers' 'DNT,Cache-Control,Content-Type,Range';
  16.             add_header 'Access-Control-Max-Age' 1728000;
  17.             add_header 'Content-Type' 'text/plain charset=UTF-8';
  18.             add_header 'Content-Length' 0;
  19.             return 200;
  20.         }
  21.         add_header 'Access-Control-Allow-Headers' 'Cache-Control,Range';
  22.         add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
  23.         expires off;
  24.     }
  25.     location ~ \.php$ {
  26.         include snippets/fastcgi-php.conf;
  27.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  28.     }
  29. }
RAW Paste Data
Top