-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
715 lines (614 loc) · 17.4 KB
/
Copy pathindex.html
File metadata and controls
715 lines (614 loc) · 17.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Azure Nginx Auto Deploy | JovanOps</title>
<meta name="description" content="Azure Nginx Auto Deploy — automation case study using Azure Linux VM, cloud-init and Nginx provisioning by JovanOps." />
<style>
:root {
--bg: #070b16;
--card: rgba(15, 23, 42, 0.78);
--border: rgba(148, 163, 184, 0.16);
--text: #f8fafc;
--muted: #94a3b8;
--blue: #38bdf8;
--azure: #0078d4;
--green: #22c55e;
--yellow: #facc15;
--purple: #a78bfa;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
background:
linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
radial-gradient(circle at top left, rgba(0,120,212,0.20), transparent 34%),
radial-gradient(circle at bottom right, rgba(56,189,248,0.14), transparent 38%),
var(--bg);
background-size: 80px 80px, 80px 80px, auto, auto;
color: var(--text);
}
a {
color: inherit;
text-decoration: none;
}
header {
position: sticky;
top: 0;
z-index: 20;
display: flex;
justify-content: space-between;
align-items: center;
padding: 26px 8%;
background: rgba(7, 11, 22, 0.78);
backdrop-filter: blur(18px);
border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.logo {
font-size: 1.35rem;
font-weight: 950;
letter-spacing: -0.04em;
}
.logo span {
color: var(--blue);
}
nav {
display: flex;
gap: 28px;
color: #cbd5e1;
font-size: 0.95rem;
}
nav a:hover {
color: var(--blue);
}
main {
padding: 78px 8%;
}
.hero {
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: 46px;
align-items: center;
margin-bottom: 72px;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--blue);
font-size: 0.82rem;
font-weight: 900;
letter-spacing: 0.14em;
text-transform: uppercase;
margin-bottom: 22px;
}
.eyebrow::before {
content: "";
width: 42px;
height: 1px;
background: var(--blue);
}
h1 {
font-size: clamp(3.2rem, 7.5vw, 7.2rem);
line-height: 0.92;
letter-spacing: -0.08em;
margin-bottom: 26px;
}
h1 span {
color: var(--blue);
}
.hero p {
max-width: 760px;
color: var(--muted);
line-height: 1.85;
font-size: 1.12rem;
margin-bottom: 32px;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 14px;
}
.btn {
min-height: 46px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 20px;
border-radius: 999px;
font-weight: 900;
transition: 0.22s ease;
border: none;
cursor: pointer;
}
.btn-primary {
background: var(--blue);
color: #020617;
}
.btn-secondary {
border: 1px solid rgba(148, 163, 184, 0.22);
color: #dbeafe;
background: rgba(15, 23, 42, 0.38);
}
.btn:hover {
transform: translateY(-2px);
}
.cloud-card {
background: linear-gradient(145deg, rgba(15,23,42,0.92), rgba(15,23,42,0.58));
border: 1px solid var(--border);
border-radius: 32px;
padding: 24px;
box-shadow: 0 30px 90px rgba(0, 120, 212, 0.16);
overflow: hidden;
}
.cloud-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}
.badge {
color: #bae6fd;
background: rgba(14, 165, 233, 0.12);
border: 1px solid rgba(14, 165, 233, 0.18);
padding: 7px 11px;
border-radius: 999px;
font-size: 0.76rem;
font-weight: 900;
}
.diagram {
min-height: 330px;
border-radius: 24px;
background:
radial-gradient(circle at center, rgba(56,189,248,0.16), transparent 34%),
rgba(2, 6, 23, 0.70);
border: 1px solid rgba(148, 163, 184, 0.13);
padding: 22px;
display: grid;
gap: 14px;
}
.node {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 16px;
border-radius: 18px;
background: rgba(15, 23, 42, 0.74);
border: 1px solid rgba(148, 163, 184, 0.12);
}
.node strong {
letter-spacing: -0.03em;
}
.node span {
color: var(--muted);
font-size: 0.86rem;
}
.node-icon {
width: 42px;
height: 42px;
display: grid;
place-items: center;
border-radius: 14px;
background: rgba(56, 189, 248, 0.13);
border: 1px solid rgba(56, 189, 248, 0.20);
font-size: 1.25rem;
flex: 0 0 auto;
}
.section-title {
display: flex;
justify-content: space-between;
align-items: end;
gap: 24px;
margin-bottom: 28px;
}
.section-title h2 {
font-size: clamp(2rem, 4vw, 3.4rem);
letter-spacing: -0.06em;
}
.section-title p {
max-width: 560px;
color: var(--muted);
line-height: 1.7;
}
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 22px;
margin-bottom: 48px;
}
.card {
background: linear-gradient(145deg, rgba(15,23,42,0.88), rgba(15,23,42,0.52));
border: 1px solid var(--border);
border-radius: 26px;
padding: 24px;
transition: 0.22s ease;
}
.card:hover {
transform: translateY(-6px);
border-color: rgba(56, 189, 248, 0.46);
box-shadow: 0 24px 70px rgba(0, 120, 212, 0.12);
}
.card-icon {
width: 52px;
height: 52px;
display: grid;
place-items: center;
border-radius: 18px;
background: rgba(56, 189, 248, 0.12);
border: 1px solid rgba(56, 189, 248, 0.22);
font-size: 1.5rem;
margin-bottom: 18px;
}
.card h3 {
font-size: 1.3rem;
letter-spacing: -0.04em;
margin-bottom: 12px;
}
.card p {
color: var(--muted);
line-height: 1.7;
margin-bottom: 18px;
}
.tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tags span {
font-size: 0.74rem;
color: #bae6fd;
background: rgba(14, 165, 233, 0.10);
border: 1px solid rgba(14, 165, 233, 0.16);
padding: 6px 10px;
border-radius: 999px;
}
.demo {
display: grid;
grid-template-columns: 0.9fr 1.1fr;
gap: 24px;
align-items: start;
margin-bottom: 48px;
}
.panel {
background: linear-gradient(145deg, rgba(15,23,42,0.88), rgba(15,23,42,0.52));
border: 1px solid var(--border);
border-radius: 28px;
padding: 24px;
}
.panel h3 {
font-size: 1.35rem;
letter-spacing: -0.04em;
margin-bottom: 12px;
}
.panel p {
color: var(--muted);
line-height: 1.7;
margin-bottom: 18px;
}
.progress-list {
display: grid;
gap: 12px;
margin-bottom: 20px;
}
.step {
display: flex;
align-items: center;
gap: 12px;
padding: 14px;
border-radius: 18px;
background: rgba(2, 6, 23, 0.48);
border: 1px solid rgba(148, 163, 184, 0.12);
color: var(--muted);
}
.step-dot {
width: 14px;
height: 14px;
border-radius: 50%;
background: rgba(148, 163, 184, 0.45);
box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.06);
flex: 0 0 auto;
}
.step.done {
color: #dbeafe;
border-color: rgba(34, 197, 94, 0.26);
}
.step.done .step-dot {
background: var(--green);
box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10);
}
pre {
min-height: 410px;
overflow: auto;
padding: 22px;
border-radius: 22px;
background: rgba(2, 6, 23, 0.72);
border: 1px solid rgba(148, 163, 184, 0.13);
color: #dbeafe;
line-height: 1.65;
font-size: 0.88rem;
font-family: "Cascadia Code", Consolas, monospace;
white-space: pre-wrap;
}
.note {
padding: 28px;
border-radius: 26px;
background: rgba(15, 23, 42, 0.54);
border: 1px solid rgba(148, 163, 184, 0.14);
color: var(--muted);
line-height: 1.75;
}
.note strong {
color: var(--text);
}
footer {
padding: 42px 8%;
color: #64748b;
border-top: 1px solid rgba(148, 163, 184, 0.10);
}
@media (max-width: 1100px) {
.hero,
.demo {
grid-template-columns: 1fr;
}
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 680px) {
header {
padding: 22px 6%;
flex-direction: column;
align-items: flex-start;
gap: 18px;
}
nav {
flex-wrap: wrap;
gap: 18px;
}
main {
padding: 58px 6%;
}
.grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<header>
<a class="logo" href="https://jovanops.github.io/">Jovan<span>Ops</span></a>
<nav>
<a href="#architecture">Architecture</a>
<a href="#simulation">Simulation</a>
<a href="#project-note">Project Note</a>
<a href="https://github.com/JovanOps/azure-nginx-autodeploy" target="_blank" rel="noopener">GitHub</a>
</nav>
</header>
<main>
<section class="hero">
<div>
<div class="eyebrow">Cloud Automation Case Study</div>
<h1>Azure Nginx <span>Auto Deploy.</span></h1>
<p>
A cloud automation project demonstrating automated Nginx deployment
on an Azure Linux Virtual Machine using cloud-init. The goal is to show
repeatable infrastructure provisioning, basic cloud architecture and
deployment-ready documentation.
</p>
<div class="actions">
<a class="btn btn-primary" href="#simulation">View Deployment Flow</a>
<a class="btn btn-secondary" href="https://github.com/JovanOps/azure-nginx-autodeploy" target="_blank" rel="noopener">
View GitHub
</a>
</div>
</div>
<aside class="cloud-card">
<div class="cloud-top">
<strong>Architecture Preview</strong>
<span class="badge">Automation Lab</span>
</div>
<div class="diagram">
<div class="node">
<div class="node-icon">☁️</div>
<div>
<strong>Microsoft Azure</strong><br />
<span>Cloud environment and resource provisioning</span>
</div>
</div>
<div class="node">
<div class="node-icon">🐧</div>
<div>
<strong>Ubuntu Linux VM</strong><br />
<span>Virtual machine used as the target server</span>
</div>
</div>
<div class="node">
<div class="node-icon">⚙️</div>
<div>
<strong>cloud-init.yaml</strong><br />
<span>Automated package installation and configuration</span>
</div>
</div>
<div class="node">
<div class="node-icon">🌐</div>
<div>
<strong>Nginx Web Server</strong><br />
<span>Provisioned automatically during VM creation</span>
</div>
</div>
</div>
</aside>
</section>
<section id="architecture">
<div class="section-title">
<h2>What This Automates</h2>
<p>
The project focuses on turning manual Linux web server setup into a clean,
repeatable cloud provisioning workflow.
</p>
</div>
<div class="grid">
<article class="card">
<div class="card-icon">☁️</div>
<h3>Azure VM Provisioning</h3>
<p>
Defines the target environment as an Azure-hosted Linux virtual machine
prepared for automated web server setup.
</p>
<div class="tags">
<span>Azure</span>
<span>Linux VM</span>
<span>Cloud</span>
</div>
</article>
<article class="card">
<div class="card-icon">⚙️</div>
<h3>cloud-init Automation</h3>
<p>
Uses cloud-init to automate package updates, Nginx installation and
startup actions during the first boot sequence.
</p>
<div class="tags">
<span>cloud-init</span>
<span>YAML</span>
<span>Provisioning</span>
</div>
</article>
<article class="card">
<div class="card-icon">🌐</div>
<h3>Nginx Deployment</h3>
<p>
Installs and starts Nginx automatically, reducing manual server setup
and creating a repeatable deployment path.
</p>
<div class="tags">
<span>Nginx</span>
<span>Web Server</span>
<span>Automation</span>
</div>
</article>
</div>
</section>
<section id="simulation">
<div class="section-title">
<h2>Deployment Flow</h2>
<p>
A static simulation of the provisioning logic. The real automation
is documented in the repository through the cloud-init configuration.
</p>
</div>
<div class="demo">
<div class="panel">
<h3>Provisioning Steps</h3>
<p>
Click the button to simulate the automated deployment process.
</p>
<div class="progress-list">
<div class="step" id="step1">
<span class="step-dot"></span>
<span>Create Azure Linux VM</span>
</div>
<div class="step" id="step2">
<span class="step-dot"></span>
<span>Run cloud-init on first boot</span>
</div>
<div class="step" id="step3">
<span class="step-dot"></span>
<span>Update packages and install Nginx</span>
</div>
<div class="step" id="step4">
<span class="step-dot"></span>
<span>Enable and start web server</span>
</div>
<div class="step" id="step5">
<span class="step-dot"></span>
<span>Serve default web page</span>
</div>
</div>
<button class="btn btn-primary" id="simulateBtn">Simulate Deploy</button>
<button class="btn btn-secondary" id="resetBtn">Reset</button>
</div>
<div class="panel">
<h3>cloud-init Preview</h3>
<p>
Example of the configuration logic used to automate the Linux VM setup.
</p>
<pre id="terminal">#cloud-config
package_update: true
package_upgrade: true
packages:
- nginx
runcmd:
- systemctl enable nginx
- systemctl start nginx
- echo "Azure Nginx Auto Deploy by JovanOps" > /var/www/html/index.html
final_message: "Nginx deployment completed successfully."</pre>
</div>
</div>
</section>
<section id="project-note" class="note">
<strong>Project note:</strong>
This Vercel page is a live visual layer for the automation project. It does not create
Azure resources from the browser. The actual infrastructure automation concept is represented
by the repository files, especially <strong>cloud-init.yaml</strong>, README documentation and screenshots.
</section>
</main>
<footer>
JovanOps · Azure Nginx Auto Deploy · Cloud Automation, Linux VM, Nginx, cloud-init & Deployment Documentation
</footer>
<script>
const steps = [
document.getElementById("step1"),
document.getElementById("step2"),
document.getElementById("step3"),
document.getElementById("step4"),
document.getElementById("step5")
];
const simulateBtn = document.getElementById("simulateBtn");
const resetBtn = document.getElementById("resetBtn");
const terminal = document.getElementById("terminal");
const baseText = terminal.textContent;
const logs = [
"$ az vm create --custom-data cloud-init.yaml",
"Creating Azure Linux VM...",
"Running cloud-init on first boot...",
"Updating package index...",
"Installing nginx...",
"Enabling nginx service...",
"Starting nginx service...",
"Deployment completed successfully.",
"Public web server is ready."
];
function resetSimulation() {
steps.forEach(step => step.classList.remove("done"));
terminal.textContent = baseText;
}
function simulateDeployment() {
resetSimulation();
terminal.textContent = "";
logs.forEach((line, index) => {
setTimeout(() => {
terminal.textContent += line + "\n";
if (steps[index - 1]) {
steps[index - 1].classList.add("done");
}
terminal.scrollTop = terminal.scrollHeight;
}, index * 450);
});
}
simulateBtn.addEventListener("click", simulateDeployment);
resetBtn.addEventListener("click", resetSimulation);
</script>
</body>
</html>