add favicon
This commit is contained in:
@@ -77,6 +77,7 @@ RUN apt-get update \
|
||||
|
||||
COPY --from=builder /usr/local/nginx /usr/local/nginx
|
||||
COPY --from=builder /usr/local/sbin/nginx /usr/local/sbin/nginx
|
||||
COPY assets/favicon.ico /usr/local/nginx/html/favicon.ico
|
||||
COPY dockerized/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
@@ -54,6 +54,7 @@ sh dockerized/test.sh
|
||||
- Nginx binary: `/usr/local/sbin/nginx`
|
||||
- Module: `/usr/local/nginx/modules/ngx_http_monitoring_module.so`
|
||||
- Config: `/etc/nginx/nginx.conf`
|
||||
- Favicon: `/usr/local/nginx/html/favicon.ico`, served at `/favicon.ico`
|
||||
- Listen port: `8080`
|
||||
|
||||
The supplied `nginx.conf` enables:
|
||||
|
||||
@@ -44,6 +44,13 @@ http {
|
||||
monitor_cors "*";
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
root /usr/local/nginx/html;
|
||||
default_type image/x-icon;
|
||||
access_log off;
|
||||
add_header Cache-Control "public, max-age=86400";
|
||||
}
|
||||
|
||||
location = / {
|
||||
default_type text/plain;
|
||||
return 200 "ngx_http_monitoring_module docker image\nopen /monitor for the dashboard\n";
|
||||
|
||||
@@ -4,6 +4,7 @@ set -eu
|
||||
BASE_URL="${BASE_URL:-http://127.0.0.1:8080}"
|
||||
|
||||
curl -fsS "$BASE_URL/" >/dev/null
|
||||
curl -fsS "$BASE_URL/favicon.ico" >/dev/null
|
||||
curl -fsS "$BASE_URL/monitor" >/dev/null
|
||||
curl -fsS "$BASE_URL/monitor/api" >/dev/null
|
||||
curl -fsS "$BASE_URL/monitor/api/system" >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user