Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hello-world-nomad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uıןǝnbsɐW ןǝɐʞɔıW
hello-world-nomad
Commits
ecf020fe
Commit
ecf020fe
authored
Oct 5, 2022
by
uıןǝnbsɐW ןǝɐʞɔıW
Browse files
Options
Downloads
Patches
Plain Diff
Update project.nomad
parent
8834aaa0
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1464
passed
Oct 5, 2022
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
project.nomad
+10
-11
10 additions, 11 deletions
project.nomad
with
10 additions
and
11 deletions
project.nomad
+
10
−
11
View file @
ecf020fe
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment