merge eva repos into single repository

This commit is contained in:
gidsi 2018-04-20 18:08:55 +02:00
commit 200dd620ae
52 changed files with 2281 additions and 0 deletions

59
frontend/nginx.conf Normal file
View file

@ -0,0 +1,59 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
proxy_cache_path /tmp/osm/cache keys_zone=osm:512m inactive=7d;
proxy_temp_path /tmp/osm/temp;
upstream osm {
server b.basemaps.cartocdn.com;
#server b.tile.openstreetmap.org;
keepalive 8;
}
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
try_files $uri /index.html;
}
location /static {
root /usr/share/nginx/html/;
}
location /api/ {
proxy_pass http://backend:8080/;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /map/tiles/ {
proxy_set_header Host b.basemaps.cartocdn.com;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://osm/dark_all/;
proxy_cache osm;
proxy_cache_valid 7d;
expires 7d;
}
}
}