Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
docker-grav
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dave Lane
docker-grav
Commits
4016b4f1
Commit
4016b4f1
authored
Nov 13, 2018
by
Dave Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing the redundant nginx config files
parent
e42775c4
Pipeline
#256
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
80 deletions
+0
-80
nginx.conf
nginx.conf
+0
-24
default.conf
nginx/default.conf
+0
-56
No files found.
nginx.conf
deleted
100644 → 0
View file @
e42775c4
#
# Set YOUR_DOMAIN below to make this work
#
server
{
# add [IP-Address:]80 in the next line if you want to limit this to a single interface
listen
0.0.0.0
:
80
;
server_name
YOUR_DOMAIN
;
root
/var/www/html
;
index
index.php
;
# change the file name of these logs to include your server name
# if hosting many services...
access_log
/var/log/nginx/grav.local_access.log
;
error_log
/var/log/nginx/grav.local_error.log
;
location
/
{
proxy_pass
http://127.0.0.1:8080
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Conection
"upgrade"
;
proxy_set_header
Host
$http_host
;
}
}
nginx/default.conf
deleted
100644 → 0
View file @
e42775c4
server
{
listen
0
.
0
.
0
.
0
:
80
;
index
index
.
html
index
.
php
;
## Web root and Domain Name
root
/
var
/
www
/
html
;
server_name
default
;
## Begin - Index
# for subfolders, simply adjust the rewrite:
# to use `/subfolder/index.php`
location
/ {
try_files
$
uri
$
uri
/ /
index
.
php
?$
query_string
;
#try_files $uri $uri/ /index.php;
}
## End - Index
## Begin - Security
# deny all direct access for these folders
location
~* /(\.
git
|
cache
|
bin
|
logs
|
backup
|
tests
)/.*$ {
return
403
; }
# deny running scripts inside core system folders
location
~* /(
system
|
vendor
)/.*\.(
txt
|
xml
|
md
|
html
|
yaml
|
yml
|
php
|
pl
|
py
|
cgi
|
twig
|
sh
|
bat
)$ {
return
403
; }
# deny running scripts inside user folder
location
~* /
user
/.*\.(
txt
|
md
|
yaml
|
yml
|
php
|
pl
|
py
|
cgi
|
twig
|
sh
|
bat
)$ {
return
403
; }
# deny access to specific files in the root folder
location
~ /(
LICENSE
\.
txt
|
composer
\.
lock
|
composer
\.
json
|
nginx
\.
conf
|
web
\.
config
|
htaccess
\.
txt
|\.
htaccess
) {
return
403
; }
## End - Security
## Begin - PHP
location
~ \.
php
$ {
# Choose either a socket or TCP/IP address
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass
app
:
9000
;
fastcgi_split_path_info
^(.+\.
php
)(/.+)$;
fastcgi_index
index
.
php
;
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
$
document_root
/$
fastcgi_script_name
;
}
client_max_body_size
100
m
;
<<<<<<<
HEAD
## Begin - Security
# deny all direct access for these folders
location
~* /(\.
git
|
cache
|
bin
|
logs
|
backups
)/.*$ {
return
403
; }
# deny running scripts inside core system folders
location
~* /(
system
|
vendor
)/.*\.(
txt
|
xml
|
md
|
html
|
yaml
|
php
|
pl
|
py
|
cgi
|
twig
|
sh
|
bat
)$ {
return
403
; }
# deny running scripts inside user folder
location
~* /
user
/.*\.(
txt
|
md
|
yaml
|
php
|
pl
|
py
|
cgi
|
twig
|
sh
|
bat
)$ {
return
403
; }
# deny access to specific files in the root folder
location
~ /(
LICENSEi
\.
txt
|
composer
\.
lock
|
composer
\.
json
|
nginx
\.
conf
|
web
\.
config
|
htaccess
\.
txt
|\.
htaccess
) {
return
403
; }
## End - Security
=======
## End - PHP
>>>>>>>
55
ff8f1fcedb9b67997ba36bc88ccd2bdae35535
}
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