Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- client_max_body_size 1000M;
- root /var/www/html;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name _;
- location / {
- client_max_body_size 1000M;
- try_files $uri $uri/ =404;
- add_header 'Access-Control-Allow-Origin' '*';
- add_header 'Access-Control-Allow-Credentials' 'true';
- add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
- if ($request_method = 'OPTIONS') {
- add_header 'Access-Control-Allow-Headers' 'DNT,Cache-Control,Content-Type,Range';
- add_header 'Access-Control-Max-Age' 1728000;
- add_header 'Content-Type' 'text/plain charset=UTF-8';
- add_header 'Content-Length' 0;
- return 200;
- }
- add_header 'Access-Control-Allow-Headers' 'Cache-Control,Range';
- add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
- expires off;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement