Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Castopod
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ad Aures
Castopod
Commits
8884598a
Commit
8884598a
authored
2 years ago
by
Benjamin Bellamy
Committed by
Yassine Doghri
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(docker): update nginx configuration
parent
a2a87abf
No related branches found
No related tags found
1 merge request
!265
Update docker nginx
Pipeline
#11438
passed
2 years ago
Stage: prepare
Stage: quality
Stage: bundle
Stage: build
Pipeline: Castopod
#11439
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/production/app/uploads.ini
+1
-0
1 addition, 0 deletions
docker/production/app/uploads.ini
docker/production/web-server/nginx.conf
+23
-25
23 additions, 25 deletions
docker/production/web-server/nginx.conf
with
24 additions
and
25 deletions
docker/production/app/uploads.ini
+
1
−
0
View file @
8884598a
...
...
@@ -3,3 +3,4 @@ memory_limit = 512M
upload_max_filesize
=
500M
post_max_size
=
512M
max_execution_time
=
300
max_input_time
=
300
This diff is collapsed.
Click to expand it.
docker/production/web-server/nginx.conf
+
23
−
25
View file @
8884598a
...
...
@@ -35,44 +35,42 @@ http {
root
/var/www/html
;
index
index.php
index.html
index.htm
;
server_tokens
off
;
add_header
X-Frame-Options
sameorigin
always
;
add_header
Permissions-Policy
interest-cohort=()
;
add_header
X-Content-Type-Options
nosniff
;
add_header
Strict-Transport-Security
"max-age=31536000
;
includeSubDomains
;
preload
;
"
;
client_max_body_size
512M
;
client_body_timeout
300s
;
client_max_body_size
1G
;
fastcgi_buffers
64
4K
;
gzip
on
;
gzip_vary
on
;
gzip_comp_level
4
;
gzip_min_length
256
;
gzip_types
application/atom
+xml
application/javascript
audio/mpeg
application/rss
+xml
image/bmp
image/png
image/jpeg
image/webp
image/svg
+xml
image/x-icon
video/mp
4
text/css
text/plain
text/html
;
gzip_types
application/atom
+xml
application/javascript
application/rss
+xml
image/bmp
image/svg
+xml
image/x-icon
text/css
text/plain
text/html
;
location
~
/.*\.(png|ico|txt|js|js\.map)$
{
try_files
$uri
=
404
;
}
location
~
/(assets|media)/.*$
{
try_files
$uri
=
404
;
}
try_files
$uri
$uri
/
/index.php?
$args
;
index
index.php
index.html
;
location
/.well-known/GDPR.yml
{
try_files
$uri
=
404
;
}
location
/
{
fastcgi_param
SCRIPT_FILENAME
/opt/castopod/public/index.php
;
location
~
\.php$
{
include
fastcgi_params
;
fastcgi_
param
SERVER_NAME
$host
;
fastcgi_
intercept_errors
on
;
fastcgi_index
index.php
;
fastcgi_pass
php-handler
;
fastcgi_param
SERVER_NAME
$host
;
fastcgi_pass
php-handler
;
fastcgi_param
SCRIPT_FILENAME
/opt/castopod/public/
$fastcgi_script_name
;
try_files
$uri
=
404
;
fastcgi_read_timeout
3600
;
fastcgi_send_timeout
3600
;
}
location
~
\.php$
{
try_files
$uri
=
404
;
fastcgi_param
SCRIPT_FILENAME
/opt/castopod/public/
$fastcgi_script_name
;
include
fastcgi_params
;
fastcgi_param
SERVER_NAME
$host
;
fastcgi_index
index.php
;
fastcgi_pass
php-handler
;
location
~
*
^.+
\
.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)
$
{
add_header
Access-Control-Allow-Origin
"*"
;
expires
max
;
access_log
off
;
}
}
}
This diff is collapsed.
Click to expand it.
Yassine Doghri
@yassinedoghri
mentioned in commit
0cb2e99f
·
2 years ago
mentioned in commit
0cb2e99f
mentioned in commit 0cb2e99f032d04c1db551f53c6d563d966cceb4c
Toggle commit list
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