From d55dc2c420439c623709609cbbfbcee48c84d618 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 10 Jun 2026 09:40:14 +0700 Subject: [PATCH] memperbaiki database --- WebGIS_PovertyMap/index.html | 2 +- nginx.conf | 17 +++++++++++++++++ nixpacks.toml | 5 +++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 nginx.conf create mode 100644 nixpacks.toml diff --git a/WebGIS_PovertyMap/index.html b/WebGIS_PovertyMap/index.html index 707888c..13ae76c 100644 --- a/WebGIS_PovertyMap/index.html +++ b/WebGIS_PovertyMap/index.html @@ -1483,7 +1483,7 @@ - + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..32d6311 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,17 @@ +server { + listen 80; + root /app; + index index.html index.php; + + location / { + try_files $uri $uri/ /index.html; + } + + location ~ \.php$ { + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PHP_VALUE "display_errors=0"; + } +} diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..40f7fd5 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,5 @@ +[phases.setup] +nixPkgs = ["php83", "php83Extensions.mysqli", "php83Extensions.pdo_mysql", "php83Extensions.mbstring", "php83Extensions.session", "nginx"] + +[start] +cmd = "php-fpm83 -D && nginx -g 'daemon off;'"