Skip to content

Commit 1b1d353

Browse files
committed
server-ssl.js
Add restart countdown timer, if the handler is defined the countdown will happen. countdownHandler - (optional) paramterless function that will fire every second during the restart count down countdownTime - (optional) how long in seconds to countdown before restarting, default 30 seconds https://i.imgur.com/ZX5TkiI.png /root │ ├── /error │ ├── 404.html │ └── 500.html │ ├── /ssl │ ├── /openssl │ ├── /module │ │ ├── /crypt │ │ ├── /jose │ │ └── lets-encrypt-acme-client.js │ │ │ ├── acmeKeys │ ├── private-key.pem │ └── certificate.pem │ └── ssl.js │ ├── /website │ └── index.html <---- Your website goes here │ ├── node.exe ├── server-ssl.js └── start-windows.bat
1 parent 6c23c22 commit 1b1d353

2 files changed

Lines changed: 10 additions & 26 deletions

File tree

error/404.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
--background-color: #0f0f0f;
1616
--background-secondary: #1d2022;
1717
--border-color: #171a1b;
18-
--shadow: 0 1px 3px var(--accent-color);
18+
--shadow: 0.1px 0.3px 0.4px 0.6px var(--accent-color);
1919
--radius: 4px;
20-
--spacing: 0.4rem;
20+
--spacing: 0.3rem;
2121
}
2222

2323
* {
@@ -43,8 +43,6 @@
4343
border-radius: var(--radius);
4444
box-shadow: var(--shadow);
4545
text-align: center;
46-
max-width: 480px;
47-
width: 100%;
4846
border: 1px solid var(--border-color);
4947
}
5048

@@ -81,17 +79,11 @@
8179

8280
.error-button:hover {
8381
background-color: var(--secondary-color);
84-
box-shadow: 0 0 4px var(--primary-color);
82+
box-shadow: 0 0 2px var(--primary-color);
8583
}
8684

87-
@media (max-width: 480px) {
88-
.error-code {
89-
font-size: 4rem;
90-
}
91-
92-
.error-title {
93-
font-size: 1.25rem;
94-
}
85+
.card {
86+
width: 400px;
9587
}
9688
</style>
9789
</head>

error/500.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
--background-color: #0f0f0f;
1616
--background-secondary: #1d2022;
1717
--border-color: #171a1b;
18-
--shadow: 0 1px 3px var(--accent-color);
18+
--shadow: 0.1px 0.3px 0.4px 0.6px var(--accent-color);
1919
--radius: 4px;
20-
--spacing: 0.4rem;
20+
--spacing: 0.3rem;
2121
}
2222

2323
* {
@@ -43,8 +43,6 @@
4343
border-radius: var(--radius);
4444
box-shadow: var(--shadow);
4545
text-align: center;
46-
max-width: 480px;
47-
width: 100%;
4846
border: 1px solid var(--border-color);
4947
}
5048

@@ -81,17 +79,11 @@
8179

8280
.error-button:hover {
8381
background-color: var(--secondary-color);
84-
box-shadow: 0 0 4px var(--primary-color);
82+
box-shadow: 0 0 2px var(--primary-color);
8583
}
8684

87-
@media (max-width: 480px) {
88-
.error-code {
89-
font-size: 4rem;
90-
}
91-
92-
.error-title {
93-
font-size: 1.25rem;
94-
}
85+
.card {
86+
width: 400px;
9587
}
9688
</style>
9789
</head>

0 commit comments

Comments
 (0)