Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
flame
flame-clmc
Commits
7723a033
Commit
7723a033
authored
6 years ago
by
Nikolay Stanchev
Browse files
Options
Downloads
Patches
Plain Diff
Adds nginx reverse proxy in clmc-service container
parent
59a58049
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/clmc-service/install-clmc-service.sh
+6
-1
6 additions, 1 deletion
scripts/clmc-service/install-clmc-service.sh
scripts/clmc-service/nginx.conf
+59
-0
59 additions, 0 deletions
scripts/clmc-service/nginx.conf
src/test/clmctest/rspec.json
+1
-4
1 addition, 4 deletions
src/test/clmctest/rspec.json
with
66 additions
and
5 deletions
scripts/clmc-service/install-clmc-service.sh
+
6
−
1
View file @
7723a033
...
...
@@ -96,7 +96,7 @@ if [ $? -ne 0 ] ; then
exit
1
fi
# Install
minio
clmc as systemctl service
# Install clmc as systemctl service
# -----------------------------------------------------------------------
mkdir
-p
/opt/flame/clmc
start_script_file
=
"/opt/flame/clmc/start.sh"
...
...
@@ -130,3 +130,8 @@ do
echo
"Waiting for clmc service port 9080 to be ready on localhost..."
sleep
5
done
# install and start nginx
apt-get
install
nginx
-y
cp
${
REPO_ROOT
}
/scripts/clmc-service/nginx.conf /etc/nginx/nginx.conf
systemctl restart nginx
# nginx is already started on installation, to read the new conf it needs to be restarted
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scripts/clmc-service/nginx.conf
0 → 100644
+
59
−
0
View file @
7723a033
user
www-data
;
worker_processes
auto
;
pid
/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
sendfile
on
;
tcp_nopush
on
;
tcp_nodelay
on
;
keepalive_timeout
65
;
types_hash_max_size
2048
;
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
access_log
/var/log/nginx/access.log
;
error_log
/var/log/nginx/error.log
;
server
{
listen
80
;
location
/kapacitor
{
proxy_pass
http://127.0.0.1:9092
;
# N.B. No URI in the URL, passes the whole location preserving the prefix
proxy_redirect
off
;
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
$server_name
;
}
location
/clmc-service/
{
proxy_pass
http://127.0.0.1:9080/
;
proxy_redirect
off
;
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
$server_name
;
}
location
/influxdb/
{
proxy_pass
http://127.0.0.1:8086/
;
proxy_redirect
off
;
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
$server_name
;
}
location
/neo4j/
{
proxy_pass
http://127.0.0.1:7474/
;
proxy_redirect
off
;
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
$server_name
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/test/clmctest/rspec.json
+
1
−
4
View file @
7723a033
...
...
@@ -2,10 +2,7 @@
"name"
:
"clmc-service"
,
"ip_address"
:
"172.40.231.51"
,
"forward_ports"
:
[
{
"guest"
:
8086
,
"host"
:
8086
},
{
"guest"
:
8888
,
"host"
:
8888
},
{
"guest"
:
9092
,
"host"
:
9092
},
{
"guest"
:
9080
,
"host"
:
9080
}
{
"guest"
:
80
,
"host"
:
80
}
]
},
{
...
...
This diff is collapsed.
Click to expand it.
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