Created
April 14, 2020 10:04
-
-
Save aguinaldotupy/fdbb8b63f6f173b8341f84416604de50 to your computer and use it in GitHub Desktop.
configuration server nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| root path/site; | |
| index index.php index.html index.htm index.nginx-debian.html; | |
| add_header X-Frame-Options "SAMEORIGIN"; | |
| add_header X-XSS-Protection "1; mode=block"; | |
| add_header X-Content-Type-Options "nosniff"; | |
| server_name localhost; | |
| client_max_body_size 100M; | |
| location / { | |
| root your-site; | |
| index index.php index.html index.htm; | |
| try_files $uri $uri/ /index.php?$args; | |
| } | |
| location ~ \.php$ { | |
| include snippets/fastcgi-php.conf; | |
| fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; | |
| fastcgi_read_timeout 3000; | |
| } | |
| location /uploads { | |
| client_max_body_size 100M; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment