Commit e27f1d7b authored by Thodoris Nestoridis's avatar Thodoris Nestoridis

server config

parent 4ef011fc
This diff is collapsed.
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
"zone.js": "~0.11.3" "zone.js": "~0.11.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1101.4", "@angular-devkit/build-angular": "^0.1101.4",
"@angular/cli": "~11.1.4", "@angular/cli": "~11.1.4",
"@angular/compiler-cli": "~11.1.2", "@angular/compiler-cli": "~11.1.2",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
......
export const environment = { export const environment = {
apiroot : "http://155.207.131.19:8000/", apiroot : "https://iotlab.csd.auth.gr:8000/",
production: true production: true
}; };
FROM stain/jena-fuseki
RUN apt-get update; \
apt-get install -y --no-install-recommends procps
FROM python:3.7 FROM python:3.7
......
server {
listen 8000 ssl;
server_name iotlab.csd.auth.gr;
ssl_certificate /etc/letsencrypt/live/iotlab.csd.auth.gr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/iotlab.csd.auth.gr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
#rewrite ^/thingsboard / permanent;
proxy_pass http://api_reqman:8000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_connect_timeout 720;
proxy_send_timeout 720;
proxy_read_timeout 720;
send_timeout 720;
client_body_timeout 720;
}
}
server {
listen 3030 ssl;
server_name iotlab.csd.auth.gr;
ssl_certificate /etc/letsencrypt/live/iotlab.csd.auth.gr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/iotlab.csd.auth.gr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
#rewrite ^/thingsboard / permanent;
proxy_pass http://fuseki:3030/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
server {
listen 8080 ssl;
server_name iotlab.csd.auth.gr;
ssl_certificate /etc/letsencrypt/live/iotlab.csd.auth.gr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/iotlab.csd.auth.gr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
root /var/dist/ReqmanAngular11;
location / {
try_files $uri $uri/ /index.html;
}
}
version: '3' version: '3'
services: services:
nginx_reqman:
image: nginx:1.15-alpine
ports:
- "8000:8000"
- "3030:3030"
- "8080:8080"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- /home/nestorid/Thingboard-Docker/data/certbot/conf:/etc/letsencrypt
- /home/nestorid/Thingboard-Docker/data/certbot/www:/var/www/certbot
- ./../../ReqmanAngular11/dist/:/var/dist
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
depends_on:
- api_reqman
api_reqman: api_reqman:
restart: always
build: build:
context: .. context: ..
dockerfile: build/Dockerfile.api dockerfile: build/Dockerfile.api
...@@ -10,8 +25,10 @@ services: ...@@ -10,8 +25,10 @@ services:
- postgres - postgres
environment: environment:
- REQMAN_DATABASE_URL=psql://reqman:reqman@postgres:5432/reqman - REQMAN_DATABASE_URL=psql://reqman:reqman@postgres:5432/reqman
ports: - FUSEKI_Username=admin
- "8000:8000" - FUSEKI_Password=pw!!!
expose:
- "8000"
postgres: postgres:
image: postgres:latest image: postgres:latest
volumes: volumes:
...@@ -26,8 +43,9 @@ services: ...@@ -26,8 +43,9 @@ services:
image: stain/jena-fuseki image: stain/jena-fuseki
environment: environment:
- ADMIN_PASSWORD=pw!!! - ADMIN_PASSWORD=pw!!!
ports: expose:
- "3030:3030" - "3030"
volumes: volumes:
......
Markdown is supported
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