Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
docker-php-yii2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
docker-php-yii2
Commits
c0abe4ec
Commit
c0abe4ec
authored
Mar 20, 2018
by
schmunk42
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aligned nginx configuration for Debian and Alpine
parent
75db3576
Pipeline
#29017
failed with stages
in 10 minutes and 7 seconds
Changes
2
Pipelines
47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
46 deletions
+45
-46
default.conf
nginx/image-files/etc/nginx/conf.d/default.conf
+45
-0
nginx.conf
nginx/image-files/etc/nginx/nginx.conf
+0
-46
No files found.
nginx/image-files/etc/nginx/conf.d/default.conf
0 → 100644
View file @
c0abe4ec
server
{
charset
utf
-
8
;
client_max_body_size
512
M
;
server_name
app
;
listen
80
;
listen
443
ssl
http2
default_server
;
ssl_certificate
/
etc
/
nginx
/
ssl
/
nginx
-
selfsigned
.
crt
;
ssl_certificate_key
/
etc
/
nginx
/
ssl
/
nginx
-
selfsigned
.
key
;
root
/
app
/
web
;
index
index
.
php
;
location
/ {
# Redirect everything that isn't a real file to index.php
try_files
$
uri
$
uri
/ /
index
.
php
?$
args
;
}
# define suffixes for static files
# set caching header and avoid processing of non-existing files by Yii
location
~ \.(
js
|
css
|
png
|
jpg
|
gif
|
swf
|
ico
|
pdf
|
mov
|
fla
|
zip
|
rar
|
svg
|
woff
|
woff2
|
eot
|
ttf
|
otf
)$ {
# set expire Header
expires
6
M
;
#add_header Cache-Control "public";
add_header
Last
-
Modified
""
;
# keep logs clean
log_not_found
off
;
try_files
$
uri
=
404
;
}
location
~ \.
php
$ {
include
/
etc
/
nginx
/
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
$
document_root
/$
fastcgi_script_name
;
fastcgi_pass
127
.
0
.
0
.
1
:
9000
;
try_files
$
uri
=
404
;
}
location
~ /\.(
ht
|
svn
|
git
) {
deny
all
;
}
}
\ No newline at end of file
nginx/image-files/etc/nginx/nginx.conf
View file @
c0abe4ec
...
...
@@ -63,51 +63,5 @@ http {
# don't use etag with expire
etag
off
;
server
{
charset
utf-8
;
client_max_body_size
512M
;
server_name
app
;
listen
80
;
listen
443
ssl
http2
default_server
;
ssl_certificate
/etc/nginx/ssl/nginx-selfsigned.crt
;
ssl_certificate_key
/etc/nginx/ssl/nginx-selfsigned.key
;
root
/app/web
;
index
index.php
;
location
/
{
# Redirect everything that isn't a real file to index.php
try_files
$uri
$uri
/
/index.php?
$args
;
}
# define suffixes for static files
# set caching header and avoid processing of non-existing files by Yii
location
~
\.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|svg|woff|woff2|eot|ttf|otf)$
{
# set expire Header
expires
6M
;
#add_header Cache-Control "public";
add_header
Last-Modified
""
;
# keep logs clean
log_not_found
off
;
try_files
$uri
=
404
;
}
location
~
\.php$
{
include
/etc/nginx/fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
$document_root
/
$fastcgi_script_name
;
fastcgi_pass
127.0.0.1
:
9000
;
try_files
$uri
=
404
;
}
location
~
/\.(ht|svn|git)
{
deny
all
;
}
}
include
/etc/nginx/conf.d/*.conf
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment