Skip to content
Snippets Groups Projects
Commit ecf020fe authored by uıןǝnbsɐW ןǝɐʞɔıW's avatar uıןǝnbsɐW ןǝɐʞɔıW
Browse files

Update project.nomad

parent 8834aaa0
Branches
No related tags found
No related merge requests found
Pipeline #1464 passed
......@@ -25,7 +25,7 @@ job "php-worker-service" {
driver = "docker"
config {
image = "docker.io/bitnami/php-fpm:8.1"
image = "php:7-fpm"
ports = ["php-fpm"]
volumes = [ "local/datas/index.html:/usr/share/nginx/html/index.html", "local/datas/mesinfos.php:/usr/share/nginx/html/mesinfos.php" ]
}
......@@ -98,16 +98,13 @@ job "php-worker-service" {
server {
listen 80;
server_name localhost;
index index.php index.html;
root /usr/share/nginx/html;
root /local/datas;
charset utf-8;
#access_log /var/log/nginx/log/host.access.log main;
location / {
try_files $uri $uri/index.php;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
......@@ -119,11 +116,13 @@ server {
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
root /usr/share/nginx/html;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass {{ range service "php-fpm" }}{{ .Address }}:{{ .Port }}{{ end }};
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
# deny access to .htaccess files, if Apache's document root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment