Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Managetests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Managetests
Commits
60674b98
Commit
60674b98
authored
Dec 20, 2015
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support caching in the nginx configuration file
parent
40cd49a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
nginx.conf
nginx.conf
+8
-3
No files found.
nginx.conf
View file @
60674b98
...
@@ -8,13 +8,19 @@ server {
...
@@ -8,13 +8,19 @@ server {
location
/
{
location
/
{
proxy_pass
http://localhost:8080
;
proxy_pass
http://localhost:8080
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Scheme
$scheme
;
}
}
location
~
^/([a-zA-Z0-9\-\._]+)/
(.*)
{
location
~
^/([a-zA-Z0-9\-\._]+)/
{
set
$branch
$1
;
set
$branch
$1
;
rewrite
^/([a-zA-Z0-9
\
-
\
._]+)/(.*)
/
$2
break
;
root
$managetests_root
/caches
;
try_files
$request_uri
.html
$request_uri
/index.html
@branch
;
}
location
@branch
{
proxy_pass
http://unix:
$managetests_root
/socks/branches/
$branch
.sock
;
proxy_pass
http://unix:
$managetests_root
/socks/branches/
$branch
.sock
;
proxy_set_header
Host
$host
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
...
@@ -23,4 +29,3 @@ server {
...
@@ -23,4 +29,3 @@ server {
}
}
}
}
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