This commit is contained in:
2026-09-15 13:25:48 +02:00
commit d97392a358
262 changed files with 11036 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# Editor page (Sveltia CMS). The site-wide policy in the root .htaccess is right for the website
# but too strict for the editor: it must talk to Gitea and load its own fonts.
# If Gitea runs under another hostname, replace git.alba-zochling.hu here and in config.yml.
<IfModule mod_headers.c>
Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' blob:; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; font-src 'self' data: https://cdn.jsdelivr.net; img-src 'self' data: blob: https:; connect-src 'self' blob: data: https://git.alba-zochling.hu https://unpkg.com; worker-src 'self' blob:; frame-src 'self' https://git.alba-zochling.hu; frame-ancestors 'self'; base-uri 'self'; form-action 'self' https://git.alba-zochling.hu"
Header set Cache-Control "no-store"
</IfModule>
# Optional: editor reachable from the office and VPN only. Add your ranges, for example:
# Require ip 192.168.10.0/24 10.8.0.0/24
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
<?php
header('Content-Type: text/yaml; charset=UTF-8');
header('Cache-Control: no-store');
$yml = (string) file_get_contents(__DIR__ . '/config.yml');
$idFile = __DIR__ . '/client-id.txt';
if (is_file($idFile)) {
$id = trim((string) file_get_contents($idFile));
if ($id !== '') { $yml = str_replace('CLIENT_ID', $id, $yml); }
}
echo $yml;
+1596
View File
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link href="/admin/config.php" type="text/yaml" rel="cms-config-url">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alba-Zöchling · Content</title>
<meta name="robots" content="noindex, nofollow">
<link rel="icon" type="image/x-icon" href="/assets/img/favicon/favicon.ico">
</head>
<body>
<script src="/admin/sveltia-cms.js"></script>
</body>
</html>
+1272
View File
File diff suppressed because one or more lines are too long