Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-Registration-Core
Commits
aac71344
Commit
aac71344
authored
4 years ago
by
Dileep Bapat
Browse files
Options
Download
Patches
Plain Diff
Nginx config for docker
parent
dcd6b53b
old.march21
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deps/nginx/nginx.conf
+50
-0
deps/nginx/nginx.conf
with
50 additions
and
0 deletions
+50
-0
deps/nginx/nginx.conf
0 → 100644
+
50
−
0
View file @
aac71344
server
{
listen
80
;
location
/registry
{
proxy_pass
http://open-saber-rc:8000/
;
}
location
/auth/
{
proxy_pass
http://keycloak:8080/auth/
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-Host
$host
;
proxy_set_header
X-Forwarded-Server
$host
;
proxy_set_header
X-Forwarded-Port
$server_port
;
proxy_set_header
X-Forwarded-Proto
$scheme
;
}
location
/keycloak/
{
proxy_pass
http://keycloak:8080/
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-Host
$host
;
proxy_set_header
X-Forwarded-Server
$host
;
proxy_set_header
X-Forwarded-Port
$server_port
;
proxy_set_header
X-Forwarded-Proto
$scheme
;
proxy_buffer_size
128k
;
proxy_buffers
4
256k
;
proxy_busy_buffers_size
256k
;
}
location
/portal
{
root
/usr/share/nginx/html
;
index
index.html
index.htm
;
try_files
$uri
$uri
/
/portal/index.html
;
error_page
404
/index.html
;
}
location
/
{
root
/usr/share/nginx/html
;
index
index.html
index.htm
;
try_files
$uri
$uri
/
/index.html
;
}
error_page
500
502
503
504
/50x.html
;
location
=
/50x.html
{
root
/usr/share/nginx/html
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets