Compare commits

...

2 Commits

Author SHA1 Message Date
Fred Boniface 0d18fd6c26 Update error message display
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-01-15 00:17:28 +00:00
Fred Boniface 40b517224e Proxy Container:
- Extend cache times for root and lists
 - Extend cache times for /api/ while testing

Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-01-14 12:12:07 +00:00
4 changed files with 12 additions and 7 deletions

View File

@ -32,21 +32,21 @@ http {
proxy_pass http://localhost:8460;
proxy_cache_key $scheme://$host$uri$is_args$query_string;
proxy_ignore_headers Cache-Control;
proxy_cache_valid 200 1440m;
proxy_cache_valid 200 10080m;
}
location /api/ {
proxy_pass http://localhost:8460;
proxy_cache_key $scheme://$host$uri$is_args$query_string;
proxy_ignore_headers Cache-Control;
proxy_cache_valid 200 1m;
proxy_cache_valid 200 5m;
}
location /api/v1/list/ {
proxy_pass http://localhost:8460;
proxy_cache_key $scheme://$host$uri$is_args$query_string;
proxy_ignore_headers Cache-Control;
proxy_cache_valid 200 1440m;
proxy_cache_valid 200 10080m;
}
}
}

View File

@ -6,7 +6,7 @@
<meta name="application-name" content="OwlBoard">
<meta name="author" content="Frederick Boniface">
<meta name="theme-color" content="#155bb7">
<title id="pgTitle">OwlBoard - Loading</title>
<title>OwlBoard - Loading</title>
<script src="./js/board.js"></script>
<link rel="stylesheet" type="text/css" href="./styles/style.css"/>
<link rel="stylesheet" type="text/css" href="./styles/boards.css"/>
@ -36,9 +36,9 @@
<div id="error_notice" class="main-notice hidden-while-loading">
<h1 class="error">Oops</h1>
<p class="error">There was an error with your request</p>
<p id="err_not_found">The station you are searching for cannot be found</p>
<p id="err_no_data">The station has no data. It may not be in operation yet/anymore.</p>
<p id="err_conn">Connection Error, check your data connection. Retrying.</p>
<p id="err_not_found" class="notices-hidden">The station you are searching for cannot be found</p>
<p id="err_no_data" class="notices-hidden">The station has no data. It may not be in operation yet/anymore.</p>
<p id="err_conn" class="notices-hidden">Connection Error, check your data connection. Retrying.</p>
</div>
<div id="no_services" class="main-notice hidden-whille-loading">
<p>There are no scheduled train services from this station</p>

View File

@ -66,6 +66,7 @@
<div class="text-description">
<p>This is a development release and is under testing.</p>
<p>Departure boards do not yet work.</p>
<p>API Responses are being cached for a long time, any data you access may be stale</p>
</div>
<!-- Footer -->

View File

@ -45,6 +45,10 @@
margin-top: 150px;
}
.notices-hidden {
display: none;
}
#no_services {
width: 75%;
margin: auto;