Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cern-drupal-distribution
Manage
Activity
Members
Labels
Plan
Issues
11
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
10
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
drupal
paas
cern-drupal-distribution
Merge requests
!115
Block serving of .config files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Block serving of .config files
block-config
into
master
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Konstantinos Samaras-Tsakiris
requested to merge
block-config
into
master
2 years ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
close
https://gitlab.cern.ch/webservices/webframeworks-planning/-/issues/927
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
44ffafb4
1 commit,
2 years ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
images/nginx/config/nginx-server-default.conf
+
5
−
0
Options
@@ -114,7 +114,12 @@ server {
fastcgi_pass
webdav
;
}
# We deny access to `.config` due to https://gitlab.cern.ch/webservices/webframeworks-planning/-/issues/927
# Previously we would deny access to txt/log files, see https://gitlab.cern.ch/webservices/webframeworks-planning/-/issues/853
location
~* \.
config
$ {
allow
192
.
168
.
0
.
0
/
16
;
deny
all
;
}
# !!! NOTE
# Order is important in nginx rules. If the following `location` are rearranged, things will BREAK.
Loading