-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
123 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"app": { | ||
"name": "vatsim-map", | ||
"version": "0.0.1", | ||
"url": "https://github.com/Kahn/vatsim-map", | ||
"log_level": 30, | ||
"http": { | ||
"host": "0.0.0.0", | ||
"port": 8080 | ||
} | ||
}, | ||
"map": { | ||
"firs" : [ | ||
"AGGG", | ||
"ANAU", | ||
"AYPM", | ||
"BRISBANE_FIR", | ||
"MELBOURNE_FIR", | ||
"NFFF-A", | ||
"NFFF-B" | ||
], | ||
"sectors": { | ||
"standard": [ | ||
"BN-ARA_CTR", | ||
"BN-ISA_CTR", | ||
"BN-MDE_CTR", | ||
"BN-TBP_CTR", | ||
"BN-TRT_CTR", | ||
"ML-ASP_CTR", | ||
"ML-BKE_CTR", | ||
"ML-ESP_CTR", | ||
"ML-ORE_CTR", | ||
"ML-SNO_CTR", | ||
"ML-TBD_CTR", | ||
"ML-TAS_CTR", | ||
"ML-WOL_CTR" | ||
] | ||
} | ||
}, | ||
"data": { | ||
"vatsim": { | ||
"dataUrl": "https://data.vatsim.net/v3/vatsim-data.json" | ||
}, | ||
"vatsys": { | ||
"fir_boundariesUrl": "https://raw.githubusercontent.com/vatSys/australia-dataset/master/Maps/FIR_BOUNDARIES.xml", | ||
"volumesUrl": "https://raw.githubusercontent.com/vatSys/australia-dataset/master/Volumes.xml", | ||
"sectorsUrl": "https://raw.githubusercontent.com/vatSys/australia-dataset/master/Sectors.xml", | ||
"coastlineUrl": "https://raw.githubusercontent.com/vatSys/australia-dataset/master/Maps/COAST_ALL.xml", | ||
"coloursUrl": "https://raw.githubusercontent.com/vatSys/australia-dataset/master/Colours.xml" | ||
}, | ||
"osm": { | ||
"overpassUrl": "https://lz4.overpass-api.de/api/interpreter", | ||
"aerodromesArea": "New South Wales" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: '3.9' | ||
services: | ||
express: | ||
container_name: express | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
command: node server.js | ||
volumes: | ||
- .:/usr/app/ | ||
- /usr/app/node_modules | ||
ports: | ||
- "8080:8080" | ||
restart: unless-stopped | ||
environment: | ||
- NODE_ENV=production | ||
webserver: | ||
image: nginx:mainline-alpine | ||
container_name: webserver | ||
restart: unless-stopped | ||
ports: | ||
- "80:80" | ||
volumes: | ||
- ./nginx-conf/nginx.conf:/etc/nginx/nginx.conf | ||
depends_on: | ||
- express |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g; | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
root /var/www/html; | ||
index index.html index.htm; | ||
location / { | ||
proxy_pass http://express:8080; | ||
proxy_set_header Host $host; | ||
proxy_buffering on; | ||
proxy_cache STATIC; | ||
proxy_cache_valid 200 1h; | ||
proxy_cache_use_stale error timeout invalid_header updating | ||
http_500 http_502 http_503 http_504; | ||
} | ||
location /v1/ { | ||
proxy_pass http://express:8080; | ||
proxy_set_header Host $host; | ||
proxy_buffering on; | ||
proxy_cache STATIC; | ||
proxy_cache_valid 200 15s; | ||
proxy_cache_use_stale error timeout invalid_header updating | ||
http_500 http_502 http_503 http_504; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters