tilde stuff
This commit is contained in:
parent
6f12f2a8e4
commit
1d8f45ea99
|
@ -5,3 +5,4 @@ acme-account.json
|
||||||
build/
|
build/
|
||||||
vendor/
|
vendor/
|
||||||
pages
|
pages
|
||||||
|
.env
|
||||||
|
|
|
@ -23,8 +23,7 @@ import (
|
||||||
// AllowedCorsDomains lists the domains for which Cross-Origin Resource Sharing is allowed.
|
// AllowedCorsDomains lists the domains for which Cross-Origin Resource Sharing is allowed.
|
||||||
// TODO: make it a flag
|
// TODO: make it a flag
|
||||||
var AllowedCorsDomains = [][]byte{
|
var AllowedCorsDomains = [][]byte{
|
||||||
[]byte("fonts.codeberg.org"),
|
[]byte("tilde.team"),
|
||||||
[]byte("design.codeberg.org"),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// BlacklistedPaths specifies forbidden path prefixes for all Codeberg Pages.
|
// BlacklistedPaths specifies forbidden path prefixes for all Codeberg Pages.
|
||||||
|
|
|
@ -5,33 +5,21 @@
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<title>%status</title>
|
<title>%status</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://design.codeberg.org/design-kit/codeberg.css" />
|
<link rel="stylesheet" href="https://tilde.team/css/hacker.css" />
|
||||||
<link href="https://fonts.codeberg.org/dist/inter/Inter%20Web/inter.css" rel="stylesheet" />
|
<link rel="stylesheet" href="https://tilde.team/css/fork-awesome.min.css" />
|
||||||
<link href="https://fonts.codeberg.org/dist/fontawesome5/css/all.min.css" rel="stylesheet" />
|
|
||||||
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
margin: 0; padding: 1rem; box-sizing: border-box;
|
|
||||||
width: 100%; min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="container">
|
||||||
<i class="fa fa-search text-primary" style="font-size: 96px;"></i>
|
<i class="fa fa-search text-primary" style="font-size: 96px;"></i>
|
||||||
<h1 class="mb-0 text-primary">
|
<h1>This page was not found!</h1>
|
||||||
This page was not found!
|
|
||||||
</h1>
|
|
||||||
<h5 class="text-center" style="max-width: 25em;">
|
<h5 class="text-center" style="max-width: 25em;">
|
||||||
Sorry, this page doesn't exist or is inaccessible for other reasons (%status).<br/>
|
Sorry, this page doesn't exist or is inaccessible for other reasons (%status).<br/>
|
||||||
We hope this is not our fault ;) - Make sure to check the <a href="https://docs.codeberg.org/codeberg-pages/troubleshooting/" target="_blank">troubleshooting section in the Docs</a>!
|
We hope this is not our fault ;) - Make sure to check the <a href="https://docs.codeberg.org/codeberg-pages/troubleshooting/" target="_blank">troubleshooting section in the Docs</a>!
|
||||||
</h5>
|
</h5>
|
||||||
<small class="text-muted">
|
<small class="text-muted">
|
||||||
<img src="https://design.codeberg.org/logo-kit/icon.svg" class="align-top">
|
<img src="https://tildegit.org/_/static/assets/img/logo.svg" class="align-top">
|
||||||
Static pages made easy - <a href="https://codeberg.page">Codeberg Pages</a>
|
Static pages made easy - <a href="https://tildepages.org">tildepages.org</a>
|
||||||
</small>
|
</small>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Pages server for tildepages.org
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/srv/pages/pages-server
|
||||||
|
EnvironmentFile=/srv/pages/pages-server/.env
|
||||||
|
ExecStart=/srv/pages/pages-server/build/codeberg-pages-server
|
||||||
|
#User=pages
|
||||||
|
#Group=nogroup
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
StartLimitInterval=60s
|
||||||
|
StartLimitBurst=3
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
Loading…
Reference in New Issue