jetlan commited on
Commit
aa00676
·
verified ·
1 Parent(s): 9efe780

Delete index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -347
index.html DELETED
@@ -1,347 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Nginx Docker Test - Port 10080</title>
7
- <style>
8
- * {
9
- margin: 0;
10
- padding: 0;
11
- box-sizing: border-box;
12
- }
13
-
14
- body {
15
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
16
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
17
- color: white;
18
- min-height: 100vh;
19
- display: flex;
20
- justify-content: center;
21
- align-items: center;
22
- padding: 20px;
23
- }
24
-
25
- .container {
26
- max-width: 1000px;
27
- width: 100%;
28
- padding: 40px;
29
- background: rgba(255, 255, 255, 0.1);
30
- border-radius: 20px;
31
- backdrop-filter: blur(10px);
32
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
33
- text-align: center;
34
- }
35
-
36
- h1 {
37
- font-size: 3em;
38
- margin-bottom: 10px;
39
- color: white;
40
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
41
- }
42
-
43
- .subtitle {
44
- font-size: 1.2em;
45
- opacity: 0.9;
46
- margin-bottom: 30px;
47
- }
48
-
49
- .status-badge {
50
- display: inline-block;
51
- padding: 12px 30px;
52
- background: linear-gradient(90deg, #4CAF50, #45a049);
53
- border-radius: 25px;
54
- font-weight: bold;
55
- font-size: 1.2em;
56
- margin: 25px 0;
57
- box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
58
- animation: pulse 2s infinite;
59
- }
60
-
61
- @keyframes pulse {
62
- 0% { transform: scale(1); }
63
- 50% { transform: scale(1.05); }
64
- 100% { transform: scale(1); }
65
- }
66
-
67
- .info-grid {
68
- display: grid;
69
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
70
- gap: 25px;
71
- margin: 40px 0;
72
- }
73
-
74
- .info-card {
75
- background: rgba(255, 255, 255, 0.15);
76
- border-radius: 15px;
77
- padding: 25px;
78
- text-align: left;
79
- transition: transform 0.3s ease;
80
- }
81
-
82
- .info-card:hover {
83
- transform: translateY(-5px);
84
- background: rgba(255, 255, 255, 0.2);
85
- }
86
-
87
- .info-card h3 {
88
- color: #90caf9;
89
- margin-bottom: 15px;
90
- font-size: 1.3em;
91
- border-bottom: 2px solid rgba(144, 202, 249, 0.3);
92
- padding-bottom: 8px;
93
- }
94
-
95
- .info-item {
96
- margin: 12px 0;
97
- display: flex;
98
- align-items: center;
99
- }
100
-
101
- .info-label {
102
- font-weight: bold;
103
- min-width: 140px;
104
- color: #bbdefb;
105
- }
106
-
107
- .info-value {
108
- font-family: 'Courier New', monospace;
109
- background: rgba(0, 0, 0, 0.2);
110
- padding: 5px 12px;
111
- border-radius: 6px;
112
- flex-grow: 1;
113
- word-break: break-all;
114
- }
115
-
116
- .command-box {
117
- background: rgba(0, 0, 0, 0.25);
118
- border-radius: 10px;
119
- padding: 15px;
120
- margin: 15px 0;
121
- font-family: 'Courier New', monospace;
122
- text-align: left;
123
- border-left: 4px solid #4CAF50;
124
- }
125
-
126
- .endpoint-list {
127
- list-style: none;
128
- margin: 20px 0;
129
- }
130
-
131
- .endpoint-list li {
132
- margin: 12px 0;
133
- display: flex;
134
- align-items: center;
135
- }
136
-
137
- .endpoint-list a {
138
- color: #90caf9;
139
- text-decoration: none;
140
- font-weight: bold;
141
- padding: 8px 15px;
142
- background: rgba(144, 202, 249, 0.1);
143
- border-radius: 8px;
144
- display: inline-block;
145
- transition: all 0.3s ease;
146
- flex-grow: 1;
147
- }
148
-
149
- .endpoint-list a:hover {
150
- background: rgba(144, 202, 249, 0.2);
151
- transform: translateX(5px);
152
- }
153
-
154
- .footer {
155
- margin-top: 40px;
156
- padding-top: 20px;
157
- border-top: 1px solid rgba(255, 255, 255, 0.1);
158
- font-size: 0.9em;
159
- opacity: 0.8;
160
- display: flex;
161
- justify-content: space-between;
162
- flex-wrap: wrap;
163
- gap: 20px;
164
- }
165
-
166
- .timestamp {
167
- font-style: italic;
168
- }
169
-
170
- @media (max-width: 768px) {
171
- .container {
172
- padding: 20px;
173
- }
174
-
175
- h1 {
176
- font-size: 2em;
177
- }
178
-
179
- .info-grid {
180
- grid-template-columns: 1fr;
181
- }
182
-
183
- .footer {
184
- flex-direction: column;
185
- text-align: center;
186
- }
187
- }
188
- </style>
189
- </head>
190
- <body>
191
- <div class="container">
192
- <h1>🚀 Nginx Docker Container</h1>
193
- <div class="subtitle">Running on Port 10080</div>
194
-
195
- <div class="status-badge">✅ STATUS: ACTIVE</div>
196
-
197
- <div class="info-grid">
198
- <div class="info-card">
199
- <h3>📡 Server Configuration</h3>
200
- <div class="info-item">
201
- <span class="info-label">Container Port:</span>
202
- <span class="info-value">10080</span>
203
- </div>
204
- <div class="info-item">
205
- <span class="info-label">Nginx Version:</span>
206
- <span class="info-value">${NGINX_VERSION}</span>
207
- </div>
208
- <div class="info-item">
209
- <span class="info-label">Host OS:</span>
210
- <span class="info-value">Alpine Linux</span>
211
- </div>
212
- <div class="info-item">
213
- <span class="info-label">Server Time:</span>
214
- <span class="info-value" id="server-time">Loading...</span>
215
- </div>
216
- </div>
217
-
218
- <div class="info-card">
219
- <h3>🔗 Access Endpoints</h3>
220
- <ul class="endpoint-list">
221
- <li>
222
- <a href="/" target="_blank">🌐 Home Page (This Page)</a>
223
- </li>
224
- <li>
225
- <a href="/status" target="_blank">📊 Status Page</a>
226
- </li>
227
- <li>
228
- <a href="/health" target="_blank">❤️ Health Check</a>
229
- </li>
230
- </ul>
231
-
232
- <div class="command-box">
233
- # Test from command line:<br>
234
- curl http://localhost:10080/
235
- </div>
236
- </div>
237
-
238
- <div class="info-card">
239
- <h3>⚡ Quick Docker Commands</h3>
240
- <div class="command-box">
241
- # Build the image:<br>
242
- docker build -t nginx-10080 .
243
- </div>
244
-
245
- <div class="command-box">
246
- # Run the container:<br>
247
- docker run -d -p 10080:10080 --name my-nginx nginx-10080
248
- </div>
249
-
250
- <div class="command-box">
251
- # View logs:<br>
252
- docker logs my-nginx
253
- </div>
254
- </div>
255
- </div>
256
-
257
- <div class="info-card">
258
- <h3>📝 Connection Information</h3>
259
- <div class="info-item">
260
- <span class="info-label">Container IP:</span>
261
- <span class="info-value" id="container-ip">Fetching...</span>
262
- </div>
263
- <div class="info-item">
264
- <span class="info-label">External Access:</span>
265
- <span class="info-value">http://your-host:10080</span>
266
- </div>
267
- <div class="info-item">
268
- <span class="info-label">Internal Access:</span>
269
- <span class="info-value">http://localhost:10080</span>
270
- </div>
271
- </div>
272
-
273
- <div class="footer">
274
- <div class="timestamp" id="timestamp">Page loaded at: <span id="load-time"></span></div>
275
- <div>Nginx Docker Test Container | Port 10080</div>
276
- </div>
277
- </div>
278
-
279
- <script>
280
- // Update server time
281
- function updateTime() {
282
- const now = new Date();
283
- const serverTime = document.getElementById('server-time');
284
- const loadTime = document.getElementById('load-time');
285
- const timestamp = now.toLocaleString('en-US', {
286
- timeZone: 'UTC',
287
- year: 'numeric',
288
- month: '2-digit',
289
- day: '2-digit',
290
- hour12: false,
291
- hour: '2-digit',
292
- minute: '2-digit',
293
- second: '2-digit'
294
- });
295
-
296
- serverTime.textContent = timestamp + ' UTC';
297
- loadTime.textContent = now.toLocaleString();
298
-
299
- // Update container info
300
- const containerIp = document.getElementById('container-ip');
301
- containerIp.textContent = window.location.hostname;
302
- }
303
-
304
- // Update time immediately and then every second
305
- updateTime();
306
- setInterval(updateTime, 1000);
307
-
308
- // Add some interactivity
309
- document.addEventListener('DOMContentLoaded', function() {
310
- const statusBadge = document.querySelector('.status-badge');
311
- let clickCount = 0;
312
-
313
- statusBadge.addEventListener('click', function() {
314
- clickCount++;
315
- const messages = [
316
- "✅ Still running!",
317
- "🚀 Going strong!",
318
- "💪 No issues detected!",
319
- "🔥 Performance optimal!",
320
- "🎉 All systems go!"
321
- ];
322
-
323
- const randomMessage = messages[Math.floor(Math.random() * messages.length)];
324
- this.textContent = `✅ STATUS: ${randomMessage}`;
325
-
326
- // Reset after 3 seconds
327
- setTimeout(() => {
328
- this.textContent = "✅ STATUS: ACTIVE";
329
- }, 3000);
330
- });
331
-
332
- // Simulate loading animation
333
- const infoCards = document.querySelectorAll('.info-card');
334
- infoCards.forEach((card, index) => {
335
- card.style.opacity = '0';
336
- card.style.transform = 'translateY(20px)';
337
-
338
- setTimeout(() => {
339
- card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
340
- card.style.opacity = '1';
341
- card.style.transform = 'translateY(0)';
342
- }, index * 200);
343
- });
344
- });
345
- </script>
346
- </body>
347
- </html>