Commit bf06ad8f authored by Daniel Suarez Souto's avatar Daniel Suarez Souto
Browse files

Added Nginx as Proxy Server

parent dac97121
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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
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
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
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment