test
This commit is contained in:
parent
d482101edd
commit
512041d593
2 changed files with 10 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ COPY config/nginx.conf.template /etc/nginx/templates/
|
|||
COPY ./html/ /usr/share/nginx/html/
|
||||
|
||||
ENV LKRP_UL_URL="https://lkrp-dev.micord.ru/ul/"
|
||||
ENV LKRP_UL_LANDING="https://lkrp-dev.micord.ru/ul/home"
|
||||
ENV LKRP_UL_LANDING="https://lkrp-dev.micord.ru/ul/#/home"
|
||||
ENV LKRP_FL_URL="https://lkrp-dev.micord.ru/fl/"
|
||||
ENV LKRP_FL_LANDING="https://lkrp-dev.micord.ru/fl/home"
|
||||
ENV LKRP_FL_LANDING="https://lkrp-dev.micord.ru/fl/#/home"
|
||||
ENV LKRP_CRT_CHECK_URL="https://www.sberbank.ru/"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
fetch("LKRP_CRT_CHECK_URL")
|
||||
.then(() => {
|
||||
fetch("https://www.sberbank.ru/")
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
throw new Error("Server responded with status " + response.status);
|
||||
}
|
||||
document.getElementById("cert-check-info").hidden = true;
|
||||
console.log("Success!");
|
||||
console.log("Success: Certificate check passed!");
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((error) => {
|
||||
document.getElementById("cert-check-info").hidden = false;
|
||||
console.log("Error!");
|
||||
console.error("Fetch error:", error.message || error);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue