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 @@
</div>
<div>
<yasgui-ui
endpoint="http://localhost:13030/gsicrawler/query"
endpoint="http://sefarad-fuseki.cluster.gsi.dit.upm.es/gsicrawler/query"
queries="{{queries}}">
</yasgui-ui>
</div>
......
......@@ -322,7 +322,7 @@
</div>
<div>
<yasgui-ui
endpoint="http://localhost:13030/gsicrawler/query"
endpoint="http://sefarad-fuseki.cluster.gsi.dit.upm.es/gsicrawler/query"
queries="{{queries}}">
</yasgui-ui>
</div>
......
......@@ -26,7 +26,7 @@
<app-location route="{{route}}"></app-location>
<elastic-client
config='{"host": "localhost:19200"}'
config='{"host": "http://sefarad-elasticsearch.cluster.gsi.dit.upm.es"}'
client="{{client}}"
cluster-status="{{myStatus}}">
</elastic-client>
......
......@@ -26,7 +26,7 @@
<app-location route="{{route}}"></app-location>
<elastic-client
config='{"host": "http://localhost:19200"}'
config='{"host": "http://sefarad-elasticsearch.cluster.gsi.dit.upm.es"}'
client="{{client}}"
cluster-status="{{myStatus}}">
</elastic-client>
......
......@@ -16,7 +16,9 @@ services:
build: nginx/.
image: trivalent/nginx-proxy-dashboard
ports:
- "8081:80"
- 8080:8080
networks:
- sefarad-network
networks:
......
FROM nginx
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
FROM nginx:alpine
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