Compare commits

..

No commits in common. "90ce6167cfd99e7f4b972fb5fbf2097698c78b7d" and "8304f4c645c8b02e93b20067c4f569aa2481df12" have entirely different histories.

3 changed files with 15 additions and 9 deletions

View file

@ -1,2 +1 @@
target/ target/
config/endstat_conf.ron

View file

@ -20,7 +20,6 @@ WORKDIR /app
COPY --from=builder /app/target/release/endstat /app COPY --from=builder /app/target/release/endstat /app
COPY ./config /app/config COPY ./config /app/config
RUN mv /app/config/endstat_conf.example.ron /app/config/endstat_conf.ron
EXPOSE 8080 EXPOSE 8080
CMD ["/app/endstat"] CMD ["/app/endstat"]

View file

@ -35,13 +35,21 @@
} }
p { margin: 0; } p { margin: 0; }
a { color: #fff; text-decoration: none; } a {
color: #fff;
text-decoration: none;
}
h1 { margin: 0; } h1 { margin: 0; }
h3 { margin: 0; text-align: justify; }
h3 { margin: 0; text-align: justify; flex-shrink: 0; } .info {
.info { display: flex; align-items: baseline; } display: flex;
.info a { text-align: right; } align-items: baseline;
.spacer { flex: 1 0 1rem; } }
.spacer {
flex: 1 0 1rem;
}
.indicator { .indicator {
width: 1rem; width: 1rem;
@ -51,7 +59,7 @@
.ok { background-color: #4ed34e; } .ok { background-color: #4ed34e; }
.warn { background-color: #fcfc64; } .warn { background-color: #fcfc64; }
.error { background-color: #ff392e; } .error { background-color: #ff392e; }
.error-msg { margin-top: 1rem; font-family: 'Source Code Pro', monospace; } .error-msg { margin-top: 1rem; font-family: 'Source Code Pro', monospace;}
</style> </style>
</head> </head>
<body> <body>
@ -68,7 +76,7 @@
<div class="info"> <div class="info">
<h3>{{ status.endpoint }}</h3> <h3>{{ status.endpoint }}</h3>
<div class="spacer"></div> <div class="spacer"></div>
<a href="{{ status.location }}" target="_blank">{{ status.location }}</a> <a href="{{ status.location }}">{{ status.location }}</a>
</div> </div>
{% if status.error %}<p class="error-msg">{{ status.error }}</p>{% endif %} {% if status.error %}<p class="error-msg">{{ status.error }}</p>{% endif %}
</main> </main>