Repository navigation
Expand file tree
/
Copy pathdeploy-linux.html
More file actions
501 lines (423 loc) · 45.3 KB
/
Copy pathdeploy-linux.html
File metadata and controls
501 lines (423 loc) · 45.3 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Deploy on Linux · FLICKED Docs</title>
<meta name="description" content="Host FLICKED on Linux with a service user, systemd units, Postgres, and HTTPS through Caddy.">
<meta name="theme-color" content="#0c0c0d">
<meta property="og:title" content="Deploy on Linux · FLICKED Docs">
<meta property="og:description" content="Host FLICKED on Linux with a service user, systemd units, Postgres, and HTTPS through Caddy.">
<link rel="icon" href="assets/logo.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;1,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/styles.css">
</head>
<body class="min-h-screen">
<div class="ambient pointer-events-none fixed inset-x-0 top-0 -z-10 h-[520px]" aria-hidden="true"></div>
<a href="#content" class="sr-only focus:not-sr-only focus:fixed focus:top-3 focus:left-3 focus:z-50 focus:rounded-md focus:bg-elevated focus:px-3 focus:py-2 focus:text-foreground">Skip to content</a>
<header class="sticky top-0 z-40 border-b border-white/[.06] bg-bg/75 backdrop-blur-xl">
<div class="mx-auto flex h-16 max-w-[1440px] items-center gap-4 px-4 sm:px-6 lg:px-8">
<button type="button" class="-ml-1.5 inline-flex size-9 items-center justify-center rounded-md text-muted hover:bg-white/[.04] hover:text-foreground lg:hidden" data-nav-open aria-label="Open navigation"><svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="18" y2="18"/></svg></button>
<a href="index.html" class="flex items-center gap-2.5" aria-label="FLICKED Docs home">
<img src="assets/logo.png" alt="" class="h-7 w-auto">
<span class="wordmark text-[22px] leading-none">FLICKED</span>
<span class="ml-1 rounded-[4px] border border-white/[.09] px-1.5 py-px font-mono text-[10.5px] uppercase tracking-[.12em] text-subtle">Docs</span>
</a>
<button type="button" data-search-open class="ml-auto flex h-9 items-center gap-2.5 rounded-lg border border-white/[.08] bg-white/[.02] px-3 text-sm text-subtle transition-colors hover:border-white/[.14] hover:text-muted md:ml-8 md:w-72 lg:w-80">
<svg class="size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg><span class="hidden md:inline">Search the docs</span>
<span class="ml-auto hidden items-center gap-1 md:flex"><kbd class="kbd" data-mod-key>Ctrl</kbd><kbd class="kbd">K</kbd></span>
</button>
<nav class="ml-auto hidden items-center gap-1 md:flex" aria-label="External">
<span class="mr-2 hidden items-center gap-2 font-mono text-[11px] text-subtle xl:flex"><span class="dot dot-live"></span>v0.1 · Alpha</span>
<a href="https://github.com/flickedgg/FLICKED/issues" target="_blank" rel="noopener" class="rounded-md px-3 py-1.5 text-[13.5px] text-subtle transition-colors hover:text-foreground">Report an issue</a>
<a href="https://github.com/flickedgg/FLICKED" target="_blank" rel="noopener" class="ml-1 inline-flex h-9 items-center gap-2 rounded-md border border-white/[.14] px-3 text-[13.5px] font-medium text-foreground transition-colors hover:border-white/[.28] hover:bg-white/[.03]"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" class="size-4"><path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"/></svg>GitHub</a>
</nav>
</div>
</header>
<!-- mobile navigation -->
<div id="mobile-nav" class="fixed inset-0 z-50 hidden lg:hidden" role="dialog" aria-modal="true" aria-label="Navigation">
<div class="absolute inset-0 bg-black/70 backdrop-blur-sm" data-nav-close></div>
<div class="absolute inset-y-0 left-0 w-[290px] max-w-[85vw] overflow-y-auto border-r border-white/[.08] bg-surface px-3 py-5">
<div class="mb-6 flex items-center justify-between px-3">
<span class="wordmark text-[20px]">FLICKED</span>
<button type="button" class="inline-flex size-8 items-center justify-center rounded-md text-muted hover:bg-white/[.05] hover:text-foreground" data-nav-close aria-label="Close navigation"><svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
</div>
<nav aria-label="Documentation">
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Getting started</p>
<ul class="space-y-px">
<li><a class="nav-link" href="index.html">Introduction</a></li>
<li><a class="nav-link" href="quickstart.html">Quickstart</a></li>
<li><a class="nav-link" href="configuration.html">Configuration</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Concepts</p>
<ul class="space-y-px">
<li><a class="nav-link" href="architecture.html">Architecture</a></li>
<li><a class="nav-link" href="parties.html">Matchmaking & parties</a></li>
<li><a class="nav-link" href="rating.html">Rating</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Self-hosting</p>
<ul class="space-y-px">
<li><a class="nav-link" href="deploy-windows.html">Deploy on Windows</a></li>
<li><a class="nav-link" href="deploy-linux.html" aria-current="page">Deploy on Linux</a></li>
<li><a class="nav-link" href="security.html">Security</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">CS2 servers</p>
<ul class="space-y-px">
<li><a class="nav-link" href="cs2-server.html">Running the CS2 server</a></li>
<li><a class="nav-link" href="matchzy.html">MatchZy integration</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Reference</p>
<ul class="space-y-px">
<li><a class="nav-link" href="api.html">API reference</a></li>
<li><a class="nav-link" href="design.html">Design system</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Project</p>
<ul class="space-y-px">
<li><a class="nav-link" href="roadmap.html">Roadmap & decisions</a></li>
<li><a class="nav-link" href="contributing.html">Contributing</a></li>
</ul>
</div>
</nav>
<a href="https://github.com/flickedgg/FLICKED" target="_blank" rel="noopener" class="mx-3 mt-2 flex items-center gap-2 text-sm text-subtle hover:text-foreground"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" class="size-4"><path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"/></svg>GitHub</a>
</div>
</div>
<div class="mx-auto max-w-[1440px] px-4 sm:px-6 lg:grid lg:grid-cols-[232px_minmax(0,1fr)] lg:gap-12 lg:px-8 xl:grid-cols-[232px_minmax(0,1fr)_216px]">
<aside class="hidden lg:block">
<nav class="sticky top-16 -ml-3 h-[calc(100vh-4rem)] overflow-y-auto py-10 pr-2" aria-label="Documentation">
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Getting started</p>
<ul class="space-y-px">
<li><a class="nav-link" href="index.html">Introduction</a></li>
<li><a class="nav-link" href="quickstart.html">Quickstart</a></li>
<li><a class="nav-link" href="configuration.html">Configuration</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Concepts</p>
<ul class="space-y-px">
<li><a class="nav-link" href="architecture.html">Architecture</a></li>
<li><a class="nav-link" href="parties.html">Matchmaking & parties</a></li>
<li><a class="nav-link" href="rating.html">Rating</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Self-hosting</p>
<ul class="space-y-px">
<li><a class="nav-link" href="deploy-windows.html">Deploy on Windows</a></li>
<li><a class="nav-link" href="deploy-linux.html" aria-current="page">Deploy on Linux</a></li>
<li><a class="nav-link" href="security.html">Security</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">CS2 servers</p>
<ul class="space-y-px">
<li><a class="nav-link" href="cs2-server.html">Running the CS2 server</a></li>
<li><a class="nav-link" href="matchzy.html">MatchZy integration</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Reference</p>
<ul class="space-y-px">
<li><a class="nav-link" href="api.html">API reference</a></li>
<li><a class="nav-link" href="design.html">Design system</a></li>
</ul>
</div>
<div class="mb-7">
<p class="mb-2 px-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">Project</p>
<ul class="space-y-px">
<li><a class="nav-link" href="roadmap.html">Roadmap & decisions</a></li>
<li><a class="nav-link" href="contributing.html">Contributing</a></li>
</ul>
</div>
</nav>
</aside>
<main id="content" class="min-w-0 py-10 lg:py-14">
<article class="mx-auto max-w-[760px]">
<header class="mb-12">
<p class="eyebrow !text-primary-light">Self-hosting</p>
<h1 class="display mt-3 text-[2.6rem] leading-[.95] sm:text-[3.4rem]">Deploy on Linux</h1>
<p class="mt-5 max-w-[60ch] text-[17px] leading-[1.65] text-muted">The same deployment on a Linux server: systemd instead of a console window, a non-root user, Postgres from the package manager, and HTTPS in about five minutes.</p>
</header>
<div class="prose-docs">
<p>Read <a href="deploy-windows.html#the-three-addresses">the three addresses</a> first: this page covers only
what is different. Examples use Debian or Ubuntu; on Fedora or Alma, swap <code>apt</code> for
<code>dnf</code> and <code>ufw</code> for <code>firewall-cmd</code>.</p>
<aside class="callout callout-tip"><svg class="size-[18px]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg><div>
<p><strong>Unlike the Windows guide, this one puts HTTPS in the main path.</strong> On Linux it is genuinely
easy, and every concern in <a href="security.html">Security</a> stops applying once you have it.</p>
</div></aside>
<h2 id="what-runs-where">What runs where<a class="anchor" href="#what-runs-where" aria-label="Link to this section">#</a></h2>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">one Linux server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-text"> ┌─────────────────── your Linux server ───────────────────┐
players ───►│ Caddy :443 ──► Flicked.Api :5165 │
│ │ │ │
│ └──────────► Dashboard :3000 │
│ │ │
│ Postgres :5432 (localhost only) │
└─────────────────────────────────────────────────────────┘
│
CS2 + MatchZy ◄──── RCON ──────┘ (same box or another one)</code></pre></div>
<p>Only Caddy faces the internet. The API, the dashboard and Postgres listen on localhost, so a firewall
mistake cannot expose them.</p>
<h2 id="1-a-user-for-it">1. A user for it<a class="anchor" href="#1-a-user-for-it" aria-label="Link to this section">#</a></h2>
<p>Never run this as root. It has no reason to write outside its own directory.</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> useradd --system --home /opt/flicked --shell /usr/sbin/nologin flicked
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">mkdir</span> -p /opt/flicked/{api,dashboard,keys}
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chown</span> -R flicked:flicked /opt/flicked</code></pre></div>
<h2 id="2-postgres">2. Postgres<a class="anchor" href="#2-postgres" aria-label="Link to this section">#</a></h2>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> apt update
<span class="hljs-built_in">sudo</span> apt install -y postgresql
<span class="hljs-built_in">sudo</span> -u postgres psql</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">psql</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-sql"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> flicked <span class="hljs-keyword">WITH</span> PASSWORD <span class="hljs-string">'pick-a-real-password'</span>;
<span class="hljs-keyword">CREATE</span> DATABASE flicked OWNER flicked;
\q</code></pre></div>
<p>Create no tables: the API migrates itself on startup. Postgres on Debian and Ubuntu listens on localhost
only by default, which is what you want. Docker works properly here, so <code>docker compose up -d</code> with
the repository's <code>docker-compose.yml</code> is a fine alternative.</p>
<h2 id="3-build-and-upload">3. Build and upload<a class="anchor" href="#3-build-and-upload" aria-label="Link to this section">#</a></h2>
<p>The API and dashboard are built on your development machine, whatever it runs, and copied across.</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">your machine</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-comment"># API, targeting Linux</span>
dotnet publish backend/Flicked.Api -c Release -r linux-x64 --self-contained
<span class="hljs-comment"># dashboard</span>
<span class="hljs-built_in">cd</span> dashboard
npm install
NEXT_PUBLIC_API_URL=https://flicked.example.com npx next build</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">your machine</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash">rsync -a backend/Flicked.Api/bin/Release/net10.0/linux-x64/publish/ you@server:/tmp/api/
rsync -a dashboard/.next/standalone/ you@server:/tmp/dashboard/
rsync -a dashboard/.next/static/ you@server:/tmp/dashboard/.next/static/
rsync -a dashboard/public/ you@server:/tmp/dashboard/public/</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> <span class="hljs-built_in">cp</span> -r /tmp/api/. /opt/flicked/api/
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">cp</span> -r /tmp/dashboard/. /opt/flicked/dashboard/
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chown</span> -R flicked:flicked /opt/flicked
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chmod</span> +x /opt/flicked/api/Flicked.Api</code></pre></div>
<aside class="callout callout-warn"><svg class="size-[18px]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg><div>
<p>That last line is not optional. The published binary arrives without the execute bit, and systemd's
<code>Permission denied</code> does not say why.</p>
</div></aside>
<h3 id="the-launcher-is-still-built-on-windows">The launcher is still built on Windows<a class="anchor" href="#the-launcher-is-still-built-on-windows" aria-label="Link to this section">#</a></h3>
<p><code>npm run tauri build</code> produces an installer for the machine it runs on. Your players are on
Windows, so the launcher is built there (see <a href="deploy-windows.html#the-launcher">the Windows
guide</a>), with <code>FLICKED_API</code> pointing at this server:</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">Windows build machine</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-cmd"><span class="hljs-built_in">set</span> FLICKED_API=https://flicked.example.com</code></pre></div>
<h3 id="what-linux-needs-that-windows-did-not">What Linux needs that Windows did not<a class="anchor" href="#what-linux-needs-that-windows-did-not" aria-label="Link to this section">#</a></h3>
<ul>
<li><strong>ICU.</strong> .NET needs <code>libicu</code> for anything culture-aware. Minimal images lack it,
and the failure is an exception on startup: <code>sudo apt install -y libicu-dev</code>.</li>
<li><strong>Node</strong>, for the dashboard: install the LTS from NodeSource or your distribution.</li>
</ul>
<h2 id="configure">4. Configure<a class="anchor" href="#configure" aria-label="Link to this section">#</a></h2>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">/opt/flicked/api/.env</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-ini">ConnectionStrings:<span class="hljs-attr">Flicked</span>=Host=localhost<span class="hljs-comment">;Port=5432;Database=flicked;Username=flicked;Password=<db-password></span>
<span class="hljs-comment"># Behind a proxy these are the public https names, not the local port.</span>
Steam:<span class="hljs-attr">PublicUrl</span>=https://flicked.example.com
Api:<span class="hljs-attr">PublicUrl</span>=https://flicked.example.com
Dashboard:<span class="hljs-attr">Url</span>=https://dash.flicked.example.com
<span class="hljs-comment"># Localhost only: Caddy is the one thing listening publicly.</span>
<span class="hljs-attr">urls</span>=http://<span class="hljs-number">127.0</span>.<span class="hljs-number">0.1</span>:<span class="hljs-number">5165</span>
<span class="hljs-attr">STEAM_API_KEY</span>=<your-steam-web-api-key>
<span class="hljs-attr">FLICKED_ADMIN_STEAM_IDS</span>=<your-steamid64>
DataProtection:<span class="hljs-attr">KeyPath</span>=/opt/flicked/keys</code></pre></div>
<p>This file holds your database password and Steam key, so do not leave it world-readable:</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chown</span> flicked:flicked /opt/flicked/api/.env
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chmod</span> 600 /opt/flicked/api/.env
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chmod</span> 700 /opt/flicked/keys</code></pre></div>
<p><code>/opt/flicked/keys</code> holds the keys that encrypt stored RCON passwords. <strong>Back it up</strong>,
and know that it does not move between machines.</p>
<h2 id="5-run-both-as-services">5. Run both as services<a class="anchor" href="#5-run-both-as-services" aria-label="Link to this section">#</a></h2>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">/etc/systemd/system/flicked-api.service</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-ini"><span class="hljs-section">[Unit]</span>
<span class="hljs-attr">Description</span>=FLICKED API
<span class="hljs-attr">After</span>=network-<span class="hljs-literal">on</span>line.target postgresql.service
<span class="hljs-attr">Wants</span>=network-<span class="hljs-literal">on</span>line.target
<span class="hljs-section">[Service]</span>
<span class="hljs-attr">User</span>=flicked
<span class="hljs-attr">Group</span>=flicked
<span class="hljs-attr">WorkingDirectory</span>=/opt/flicked/api
<span class="hljs-attr">ExecStart</span>=/opt/flicked/api/Flicked.Api
<span class="hljs-attr">Restart</span>=always
<span class="hljs-attr">RestartSec</span>=<span class="hljs-number">5</span>
<span class="hljs-comment"># It needs to read its own directory and write nothing else.</span>
<span class="hljs-attr">NoNewPrivileges</span>=<span class="hljs-literal">true</span>
<span class="hljs-attr">PrivateTmp</span>=<span class="hljs-literal">true</span>
<span class="hljs-attr">ProtectSystem</span>=strict
<span class="hljs-attr">ProtectHome</span>=<span class="hljs-literal">true</span>
<span class="hljs-attr">ReadWritePaths</span>=/opt/flicked/keys
<span class="hljs-section">[Install]</span>
<span class="hljs-attr">WantedBy</span>=multi-user.target</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">/etc/systemd/system/flicked-dashboard.service</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-ini"><span class="hljs-section">[Unit]</span>
<span class="hljs-attr">Description</span>=FLICKED dashboard
<span class="hljs-attr">After</span>=network-<span class="hljs-literal">on</span>line.target flicked-api.service
<span class="hljs-section">[Service]</span>
<span class="hljs-attr">User</span>=flicked
<span class="hljs-attr">Group</span>=flicked
<span class="hljs-attr">WorkingDirectory</span>=/opt/flicked/dashboard
<span class="hljs-attr">Environment</span>=PORT=<span class="hljs-number">3000</span>
<span class="hljs-attr">Environment</span>=HOSTNAME=<span class="hljs-number">127.0</span>.<span class="hljs-number">0.1</span>
<span class="hljs-attr">ExecStart</span>=/usr/bin/node server.js
<span class="hljs-attr">Restart</span>=always
<span class="hljs-attr">RestartSec</span>=<span class="hljs-number">5</span>
<span class="hljs-attr">NoNewPrivileges</span>=<span class="hljs-literal">true</span>
<span class="hljs-attr">PrivateTmp</span>=<span class="hljs-literal">true</span>
<span class="hljs-attr">ProtectSystem</span>=strict
<span class="hljs-attr">ProtectHome</span>=<span class="hljs-literal">true</span>
<span class="hljs-section">[Install]</span>
<span class="hljs-attr">WantedBy</span>=multi-user.target</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> systemctl daemon-reload
<span class="hljs-built_in">sudo</span> systemctl <span class="hljs-built_in">enable</span> --now flicked-api flicked-dashboard
<span class="hljs-built_in">sudo</span> systemctl status flicked-api --no-pager
journalctl -u flicked-api -f <span class="hljs-comment"># watch the first start apply migrations</span></code></pre></div>
<p><code>ProtectSystem=strict</code> makes the whole filesystem read-only except what you name, which is why
<code>ReadWritePaths=/opt/flicked/keys</code> is there. If you move <code>DataProtection:KeyPath</code>, move that
line too, or the API starts and then fails the first time it encrypts anything.</p>
<h2 id="6-https">6. HTTPS<a class="anchor" href="#6-https" aria-label="Link to this section">#</a></h2>
<h3 id="option-a-plain-http-testing-only">Option A: plain HTTP (testing only)<a class="anchor" href="#option-a-plain-http-testing-only" aria-label="Link to this section">#</a></h3>
<p>Set <code>urls=http://0.0.0.0:5165</code>, open the ports, and stop here. You are then running the setup
whose costs are listed in <a href="security.html">Security</a>. Fine among friends for an evening, not
otherwise.</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> ufw allow 5165/tcp
<span class="hljs-built_in">sudo</span> ufw allow 3000/tcp</code></pre></div>
<h3 id="option-b-caddy-recommended">Option B: Caddy (recommended)<a class="anchor" href="#option-b-caddy-recommended" aria-label="Link to this section">#</a></h3>
<p>Point two DNS records at the server, then:</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> apt install -y caddy</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">/etc/caddy/Caddyfile</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-caddyfile">flicked.example.<span class="hljs-section">com</span> {
<span class="hljs-attribute">reverse_proxy</span> <span class="hljs-number">127.0.0.1:5165</span>
}
dash.flicked.example.com {
<span class="hljs-attribute">reverse_proxy</span> <span class="hljs-number">127.0.0.1:3000</span>
}</code></pre></div>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> systemctl reload caddy
<span class="hljs-built_in">sudo</span> ufw allow 80/tcp && <span class="hljs-built_in">sudo</span> ufw allow 443/tcp</code></pre></div>
<p>Caddy obtains and renews certificates by itself. Two things to know:</p>
<ul>
<li><strong>The session cookie is marked <code>Secure</code> only when the request looks secure</strong>, and
behind a proxy it arrives over http on loopback. The API therefore reads <code>X-Forwarded-Proto</code>, but
only from a proxy on the same machine, because those headers are trivial to forge. If your proxy is on a
<em>different</em> machine, add its address to <code>KnownProxies</code> in <code>Program.cs</code>, or the cookie
silently loses its <code>Secure</code> flag.</li>
<li><strong>Rebuild the launcher</strong> once the addresses are <code>https://</code>. The address is compiled
in.</li>
</ul>
<h2 id="7-the-cs2-server">7. The CS2 server<a class="anchor" href="#7-the-cs2-server" aria-label="Link to this section">#</a></h2>
<p>MatchZy, Metamod and CounterStrikeSharp all run on Linux, and the backend does not care which the server
is:</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-built_in">sudo</span> -u steam /opt/steamcmd/steamcmd.sh +force_install_dir /opt/cs2 \
+login anonymous +app_update 730 validate +quit</code></pre></div>
<ul>
<li><strong><code>gameinfo.gi</code> is restored by <code>validate</code></strong>, exactly as on Windows. Re-add
the Metamod search path after every update. See <a href="cs2-server.html#updating-after-a-cs2-patch">Running
the CS2 server</a>.</li>
<li><strong>The RCON port must be reachable from the API.</strong> Same box means <code>127.0.0.1:27015</code>
and no firewall rule; another box means opening 27015 to this server's address only, not to the
world.</li>
</ul>
<h2 id="8-keep-the-clock-right">8. Keep the clock right<a class="anchor" href="#8-keep-the-clock-right" aria-label="Link to this section">#</a></h2>
<p>Match timers are drawn from timestamps, so a drifting clock shows a countdown that starts part-way
through or sits at zero:</p>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">server</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash">timedatectl status <span class="hljs-comment"># want: "System clock synchronized: yes"</span>
<span class="hljs-built_in">sudo</span> timedatectl set-ntp <span class="hljs-literal">true</span></code></pre></div>
<h2 id="upgrading">Upgrading<a class="anchor" href="#upgrading" aria-label="Link to this section">#</a></h2>
<div class="codeblock"><div class="codeblock-head"><span class="codeblock-title">upgrade</span><button type="button" class="copy-btn" data-copy aria-label="Copy code"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><span>Copy</span></button></div><pre><code class="hljs language-bash"><span class="hljs-comment"># on your machine</span>
dotnet publish backend/Flicked.Api -c Release -r linux-x64 --self-contained
rsync -a backend/Flicked.Api/bin/Release/net10.0/linux-x64/publish/ you@server:/tmp/api/
<span class="hljs-comment"># on the server</span>
<span class="hljs-built_in">sudo</span> -u postgres pg_dump flicked > ~/flicked-$(<span class="hljs-built_in">date</span> +%F).sql <span class="hljs-comment"># before a data migration</span>
<span class="hljs-built_in">sudo</span> systemctl stop flicked-api
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">cp</span> -r /tmp/api/. /opt/flicked/api/
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chown</span> -R flicked:flicked /opt/flicked/api
<span class="hljs-built_in">sudo</span> <span class="hljs-built_in">chmod</span> +x /opt/flicked/api/Flicked.Api
<span class="hljs-built_in">sudo</span> systemctl start flicked-api
journalctl -u flicked-api -n 50 --no-pager</code></pre></div>
<p>Unless the dependencies changed, only <code>Flicked.Api.dll</code> and <code>Flicked.Api.pdb</code> differ, so
copying those two is enough.</p>
<h2 id="troubleshooting">Troubleshooting<a class="anchor" href="#troubleshooting" aria-label="Link to this section">#</a></h2>
<p>Everything in the <a href="deploy-windows.html#troubleshooting">Windows troubleshooting table</a> still
applies. These are the Linux-only ones.</p>
<div class="table-wrap"><table>
<thead><tr><th>Symptom</th><th>Cause</th></tr></thead>
<tbody>
<tr><td><code>Permission denied</code> starting the service</td><td>The published binary has no execute bit: <code>chmod +x</code></td></tr>
<tr><td>Service starts, then fails encrypting something</td><td><code>ProtectSystem=strict</code> without <code>ReadWritePaths</code> for the key folder</td></tr>
<tr><td>Culture or globalization exception on startup</td><td><code>libicu</code> missing, typical of minimal images</td></tr>
<tr><td>Reachable on <code>:5165</code> but not through Caddy</td><td>Caddy is proxying a different port than the API listens on</td></tr>
<tr><td>Dashboard cookie rejected behind the proxy</td><td>Dashboard and API are on hostnames that are not the same site</td></tr>
<tr><td><code>FATAL: password authentication failed</code></td><td>The password in <code>.env</code> does not match the <code>flicked</code> role</td></tr>
<tr><td>Everything works until reboot</td><td>The services were never <code>systemctl enable</code>d</td></tr>
</tbody>
</table></div>
</div>
<nav class="mt-20 grid gap-3 sm:grid-cols-2" aria-label="Pagination">
<a href="deploy-windows.html" class="group flex flex-col rounded-xl border border-white/[.08] bg-surface px-5 py-4 transition-colors hover:border-white/[.16] ">
<span class="flex items-center gap-1.5 font-mono text-[10.5px] uppercase tracking-[.14em] text-subtle"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 19-7-7 7-7"/><path d="M19 12H5"/></svg>Previous</span>
<span class="mt-1.5 text-[15px] font-medium text-foreground transition-colors group-hover:text-primary-light">Deploy on Windows</span>
</a>
<a href="security.html" class="group flex flex-col rounded-xl border border-white/[.08] bg-surface px-5 py-4 transition-colors hover:border-white/[.16] items-end text-right sm:col-start-2">
<span class="flex items-center gap-1.5 font-mono text-[10.5px] uppercase tracking-[.14em] text-subtle">Next<svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg></span>
<span class="mt-1.5 text-[15px] font-medium text-foreground transition-colors group-hover:text-primary-light">Security</span>
</a>
</nav>
</article>
</main>
<aside class="hidden xl:block">
<div class="sticky top-16 max-h-[calc(100vh-4rem)] overflow-y-auto py-14">
<p class="mb-3 font-mono text-[10.5px] font-medium uppercase tracking-[.14em] text-subtle">On this page</p>
<nav aria-label="On this page" id="toc">
<a class="toc-link" href="#what-runs-where">What runs where</a>
<a class="toc-link" href="#1-a-user-for-it">1. A user for it</a>
<a class="toc-link" href="#2-postgres">2. Postgres</a>
<a class="toc-link" href="#3-build-and-upload">3. Build and upload</a>
<a class="toc-link toc-sub" href="#the-launcher-is-still-built-on-windows">The launcher is still built on Windows</a>
<a class="toc-link toc-sub" href="#what-linux-needs-that-windows-did-not">What Linux needs that Windows did not</a>
<a class="toc-link" href="#configure">4. Configure</a>
<a class="toc-link" href="#5-run-both-as-services">5. Run both as services</a>
<a class="toc-link" href="#6-https">6. HTTPS</a>
<a class="toc-link toc-sub" href="#option-a-plain-http-testing-only">Option A: plain HTTP (testing only)</a>
<a class="toc-link toc-sub" href="#option-b-caddy-recommended">Option B: Caddy (recommended)</a>
<a class="toc-link" href="#7-the-cs2-server">7. The CS2 server</a>
<a class="toc-link" href="#8-keep-the-clock-right">8. Keep the clock right</a>
<a class="toc-link" href="#upgrading">Upgrading</a>
<a class="toc-link" href="#troubleshooting">Troubleshooting</a>
</nav>
<a href="https://github.com/flickedgg/FLICKED/blob/main/docs/DEPLOY-LINUX.md" class="mt-6 inline-flex items-center gap-2 text-[13px] text-subtle transition-colors hover:text-foreground" target="_blank" rel="noopener"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>View source on GitHub</a>
</div>
</aside>
</div>
<footer class="mt-10 border-t border-white/[.06]">
<div class="mx-auto flex max-w-[1440px] flex-col gap-4 px-4 py-10 text-[13px] text-subtle sm:flex-row sm:items-center sm:justify-between sm:px-6 lg:px-8">
<div class="flex items-center gap-2.5">
<img src="assets/logo.png" alt="" class="h-5 w-auto opacity-80">
<span>FLICKED is free, open source and MIT licensed. Not affiliated with Valve.</span>
</div>
<div class="flex gap-5">
<a href="https://github.com/flickedgg/FLICKED" class="hover:text-foreground" target="_blank" rel="noopener">Repository</a>
<a href="contributing.html" class="hover:text-foreground">Contributing</a>
<a href="roadmap.html" class="hover:text-foreground">Roadmap</a>
</div>
</div>
</footer>
<!-- search -->
<dialog id="search-dialog" class="m-0 mx-auto mt-[12vh] w-[calc(100%-2rem)] max-w-xl overflow-hidden rounded-xl border border-white/10 bg-elevated p-0 text-muted shadow-plane2" aria-label="Search the docs">
<div class="flex items-center gap-3 border-b border-white/[.08] px-4">
<svg class="size-[18px] shrink-0 text-subtle" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
<input id="search-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search pages and sections" class="h-14 w-full bg-transparent text-[15px] text-foreground placeholder:text-subtle focus:outline-none" aria-controls="search-results">
<kbd class="kbd">Esc</kbd>
</div>
<ul id="search-results" role="listbox" class="max-h-[56vh] overflow-y-auto p-2"></ul>
<div class="flex items-center gap-4 border-t border-white/[.06] px-4 py-2.5 font-mono text-[10.5px] text-subtle">
<span class="flex items-center gap-1.5"><kbd class="kbd">↑</kbd><kbd class="kbd">↓</kbd> navigate</span>
<span class="flex items-center gap-1.5"><kbd class="kbd">↵</kbd> open</span>
</div>
</dialog>
<script src="assets/search-index.js"></script>
<script src="assets/app.js"></script>
</body>
</html>