|
|
@@ -0,0 +1,34 @@
|
|
|
+server {
|
|
|
+ listen 8080;
|
|
|
+ server_name _;
|
|
|
+
|
|
|
+ access_log /workspace/iapt-platform/tmp/nginx-access.org;
|
|
|
+ error_log /workspace/iapt-platform/tmp/nginx-error.log;
|
|
|
+
|
|
|
+ add_header X-Frame-Options "SAMEORIGIN";
|
|
|
+ add_header X-Content-Type-Options "nosniff";
|
|
|
+
|
|
|
+ root /workspace/iapt-platform/mint-laravel/public;
|
|
|
+ index index.html index.php;
|
|
|
+
|
|
|
+ charset utf-8;
|
|
|
+ gzip on;
|
|
|
+ client_max_body_size 16M;
|
|
|
+
|
|
|
+ location / {
|
|
|
+ try_files $uri $uri/ /index.php?$query_string;
|
|
|
+ }
|
|
|
+
|
|
|
+ location = /favicon.ico { access_log off; log_not_found off; }
|
|
|
+ location = /robots.txt { access_log off; log_not_found off; }
|
|
|
+ error_page 404 /index.php;
|
|
|
+
|
|
|
+ location ~ \.php$ {
|
|
|
+ fastcgi_pass unix:/run/php/php-fpm.sock;
|
|
|
+ fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
|
+ include fastcgi_params;
|
|
|
+ }
|
|
|
+ location ~ /\.(?!well-known).* {
|
|
|
+ deny all;
|
|
|
+ }
|
|
|
+}
|