-
Notifications
You must be signed in to change notification settings - Fork 7
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
8 changed files
with
202 additions
and
0 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,19 @@ | ||
{ | ||
"apiEndpoint": "{{ getenv "APP_API_ENDPOINT" "/" }}", | ||
"authenticationEndpoint": "{{ getenv "APP_API_AUTHENTICATION_ENDPOINT" "/v1/authentication/token" }}", | ||
"authenticationRefreshTokenEndpoint": "{{ getenv "APP_API_AUTHENTICATION_REFRESH_ENDPOINT" "/v1/authentication/token/refresh" }}", | ||
"dataStrategy": { | ||
"type": "pull", | ||
"config": { | ||
"interval": {{ getenv "APP_DATA_PULL_INTERVAL" "30000" }}, | ||
"endpoint": "{{ getenv "APP_API_PATH" "/" }}" | ||
} | ||
}, | ||
"colorScheme": { | ||
"type": "library", | ||
"lat": {{ getenv "APP_CLIENT_LATITUDE" "56.0" }}, | ||
"lng": {{ getenv "APP_CLIENT_LONGITUDE" "10.0" }} | ||
}, | ||
"schedulingInterval": {{ getenv "APP_SCHEDULING_INTERVAL" "60000" }}, | ||
"debug": {{ getenv "APP_DEBUG" "false" }} | ||
} |
34 changes: 34 additions & 0 deletions
34
infrastructure/itkdev/etc/confd/templates/default.conf.tmpl
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,34 @@ | ||
server { | ||
listen 8080; | ||
server_name localhost; | ||
root /var/www/html; | ||
|
||
location {{ getenv "APP_SCREEN_CLIENT_PATH" "/" }} { | ||
rewrite ^{{ getenv "APP_SCREEN_CLIENT_PATH" "/" }}(.*) /$1 break; | ||
index index.html; | ||
autoindex off; | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
location = {{ getenv "APP_SCREEN_CLIENT_PATH" "" }}/robots.txt { | ||
add_header Content-Type text/plain; | ||
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; | ||
return 200 "User-agent: *\nDisallow: /\n"; | ||
} | ||
|
||
error_log /var/log/nginx/error.log; | ||
access_log /var/log/nginx/access.log; | ||
} | ||
|
||
server { | ||
listen 8081; | ||
server_name localhost; | ||
root /var/www/html/public; | ||
|
||
error_log off; | ||
access_log off; | ||
|
||
location /stub_status { | ||
stub_status; | ||
} | ||
} |
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,45 @@ | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /tmp/nginx.pid; | ||
|
||
events { | ||
worker_connections 2048; | ||
multi_accept on; | ||
} | ||
|
||
http { | ||
open_file_cache max=10000 inactive=5m; | ||
open_file_cache_valid 5m; | ||
open_file_cache_min_uses 5; | ||
open_file_cache_errors off; | ||
|
||
sendfile on; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
keepalive_timeout 15 15; | ||
types_hash_max_size 2048; | ||
|
||
server_tokens off; | ||
|
||
gzip on; | ||
gzip_disable "msie6"; | ||
gzip_vary on; | ||
gzip_proxied any; | ||
gzip_comp_level 6; | ||
gzip_buffers 16 8k; | ||
gzip_http_version 1.0; | ||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; | ||
|
||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
error_log /dev/stderr; | ||
access_log /dev/stdout main; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |
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,19 @@ | ||
{ | ||
"apiEndpoint": "{{ getenv "APP_API_ENDPOINT" "/" }}", | ||
"authenticationEndpoint": "{{ getenv "APP_API_AUTHENTICATION_ENDPOINT" "/v1/authentication/token" }}", | ||
"authenticationRefreshTokenEndpoint": "{{ getenv "APP_API_AUTHENTICATION_REFRESH_ENDPOINT" "/v1/authentication/token/refresh" }}", | ||
"dataStrategy": { | ||
"type": "pull", | ||
"config": { | ||
"interval": {{ getenv "APP_DATA_PULL_INTERVAL" "30000" }}, | ||
"endpoint": "{{ getenv "APP_API_PATH" "/" }}" | ||
} | ||
}, | ||
"colorScheme": { | ||
"type": "library", | ||
"lat": {{ getenv "APP_CLIENT_LATITUDE" "56.0" }}, | ||
"lng": {{ getenv "APP_CLIENT_LONGITUDE" "10.0" }} | ||
}, | ||
"schedulingInterval": {{ getenv "APP_SCHEDULING_INTERVAL" "60000" }}, | ||
"debug": {{ getenv "APP_DEBUG" "false" }} | ||
} |
34 changes: 34 additions & 0 deletions
34
infrastructure/os2display/etc/confd/templates/default.conf.tmpl
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,34 @@ | ||
server { | ||
listen 8080; | ||
server_name localhost; | ||
root /var/www/html; | ||
|
||
location {{ getenv "APP_SCREEN_CLIENT_PATH" "/" }} { | ||
rewrite ^{{ getenv "APP_SCREEN_CLIENT_PATH" "/" }}(.*) /$1 break; | ||
index index.html; | ||
autoindex off; | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
location = {{ getenv "APP_SCREEN_CLIENT_PATH" "" }}/robots.txt { | ||
add_header Content-Type text/plain; | ||
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; | ||
return 200 "User-agent: *\nDisallow: /\n"; | ||
} | ||
|
||
error_log /var/log/nginx/error.log; | ||
access_log /var/log/nginx/access.log; | ||
} | ||
|
||
server { | ||
listen 8081; | ||
server_name localhost; | ||
root /var/www/html/public; | ||
|
||
error_log off; | ||
access_log off; | ||
|
||
location /stub_status { | ||
stub_status; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
infrastructure/os2display/etc/confd/templates/nginx.conf.tmpl
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,45 @@ | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /tmp/nginx.pid; | ||
|
||
events { | ||
worker_connections 2048; | ||
multi_accept on; | ||
} | ||
|
||
http { | ||
open_file_cache max=10000 inactive=5m; | ||
open_file_cache_valid 5m; | ||
open_file_cache_min_uses 5; | ||
open_file_cache_errors off; | ||
|
||
sendfile on; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
keepalive_timeout 15 15; | ||
types_hash_max_size 2048; | ||
|
||
server_tokens off; | ||
|
||
gzip on; | ||
gzip_disable "msie6"; | ||
gzip_vary on; | ||
gzip_proxied any; | ||
gzip_comp_level 6; | ||
gzip_buffers 16 8k; | ||
gzip_http_version 1.0; | ||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; | ||
|
||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
error_log /dev/stderr; | ||
access_log /dev/stdout main; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |