Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
trivalent
dashboard-trivalent
Commits
bf06ad8f
Commit
bf06ad8f
authored
Dec 10, 2018
by
Daniel Suarez Souto
Browse files
Added Nginx as Proxy Server
parent
dac97121
Changes
8
Hide whitespace changes
Inline
Side-by-side
dashboard-gsicrawler.env.html
View file @
bf06ad8f
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
</div>
</div>
<div>
<div>
<yasgui-ui
<yasgui-ui
endpoint=
"http://
localhost:13030
/gsicrawler/query"
endpoint=
"http://
sefarad-fuseki.cluster.gsi.dit.upm.es
/gsicrawler/query"
queries=
"{{queries}}"
>
queries=
"{{queries}}"
>
</yasgui-ui>
</yasgui-ui>
</div>
</div>
...
...
dashboard-gsicrawler.html
View file @
bf06ad8f
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
</div>
</div>
<div>
<div>
<yasgui-ui
<yasgui-ui
endpoint=
"http://
localhost:13030
/gsicrawler/query"
endpoint=
"http://
sefarad-fuseki.cluster.gsi.dit.upm.es
/gsicrawler/query"
queries=
"{{queries}}"
>
queries=
"{{queries}}"
>
</yasgui-ui>
</yasgui-ui>
</div>
</div>
...
...
demo/index.env.html
View file @
bf06ad8f
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
<template
is=
"dom-bind"
>
<template
is=
"dom-bind"
>
<app-location
route=
"{{route}}"
></app-location>
<app-location
route=
"{{route}}"
></app-location>
<elastic-client
<elastic-client
config=
'{"host": "
localhost:19200
"}'
config=
'{"host": "
http://sefarad-elasticsearch.cluster.gsi.dit.upm.es
"}'
client=
"{{client}}"
client=
"{{client}}"
cluster-status=
"{{myStatus}}"
>
cluster-status=
"{{myStatus}}"
>
</elastic-client>
</elastic-client>
...
...
demo/index.html
View file @
bf06ad8f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<app-location
route=
"{{route}}"
></app-location>
<app-location
route=
"{{route}}"
></app-location>
<elastic-client
<elastic-client
config=
'{"host": "http://
localhost:19200
"}'
config=
'{"host": "http://
sefarad-elasticsearch.cluster.gsi.dit.upm.es
"}'
client=
"{{client}}"
client=
"{{client}}"
cluster-status=
"{{myStatus}}"
>
cluster-status=
"{{myStatus}}"
>
</elastic-client>
</elastic-client>
...
...
docker-compose.yml
View file @
bf06ad8f
...
@@ -16,9 +16,11 @@ services:
...
@@ -16,9 +16,11 @@ services:
build
:
nginx/.
build
:
nginx/.
image
:
trivalent/nginx-proxy-dashboard
image
:
trivalent/nginx-proxy-dashboard
ports
:
ports
:
-
"
8081:80"
-
8080:8080
networks
:
-
sefarad-network
networks
:
networks
:
sefarad-network
:
sefarad-network
:
driver
:
bridge
driver
:
bridge
\ No newline at end of file
nginx/Dockerfile
View file @
bf06ad8f
FROM
nginx
FROM
nginx:alpine
COPY
dashboard /etc/nginx/sites-available/dashboard
RUN
mkdir
/etc/nginx/sites-enabled/
RUN
ln
-s
/etc/nginx/sites-available/dashboard /etc/nginx/sites-enabled/dashboard
COPY
nginx.conf /etc/nginx/nginx.conf
COPY
.htpasswd /etc/nginx/htpasswd
\ No newline at end of file
nginx/dashboard
deleted
100644 → 0
View file @
dac97121
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://sefarad: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-Proto $scheme;
}
}
\ No newline at end of file
nginx/nginx.conf
0 → 100644
View file @
bf06ad8f
worker_processes
1
;
events
{
worker_connections
1024
;
}
http
{
sendfile
on
;
upstream
docker-sefarad
{
server
sefarad
:
8080
;
}
server
{
listen
8080
;
location
/
{
auth_basic
"Restricted"
;
auth_basic_user_file
/etc/nginx/htpasswd
;
proxy_pass
http://docker-sefarad
;
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
Write
Preview
Supports
Markdown
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