27 خطوط
1.1 KiB
Plaintext
27 خطوط
1.1 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
client_max_body_size 2050m;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
add_header X-Content-Type-Options nosniff always;
|
|
add_header X-Frame-Options SAMEORIGIN always;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
add_header Content-Security-Policy "default-src 'self'; img-src 'self' data: blob:; media-src 'self' blob:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self' ws: wss:; frame-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'" always;
|
|
|
|
location /api/ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /var/www/backend/public/index.php;
|
|
fastcgi_param SCRIPT_NAME /index.php;
|
|
fastcgi_param HTTP_PROXY "";
|
|
fastcgi_pass app:9000;
|
|
fastcgi_read_timeout 600s;
|
|
fastcgi_request_buffering off;
|
|
}
|
|
|
|
location /storage/ { return 404; }
|
|
location / { try_files $uri $uri/ /index.html; }
|
|
}
|