Some checks failed
Build & Push Docker Image / build (push) Failing after 8s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
770 B
Nginx Configuration File
37 lines
770 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /var/www/html/Inventory_frontend/.output/public;
|
|
index index.html;
|
|
|
|
access_log /dev/stdout;
|
|
error_log /dev/stderr;
|
|
|
|
location ^~ /api/ {
|
|
root /var/www/html/public;
|
|
try_files $uri /index.php?$query_string;
|
|
}
|
|
|
|
location ^~ /bundles/ {
|
|
root /var/www/html/public;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
location ~ ^/index\.php(/|$) {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /var/www/html/public/index.php;
|
|
fastcgi_param DOCUMENT_ROOT /var/www/html/public;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
internal;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
return 404;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|