diff --git a/.gitignore b/.gitignore index dfe69ac..380a008 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ acme-account.json build/ vendor/ pages +.env diff --git a/cmd/main.go b/cmd/main.go index 6836cee..225e941 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -23,8 +23,7 @@ import ( // AllowedCorsDomains lists the domains for which Cross-Origin Resource Sharing is allowed. // TODO: make it a flag var AllowedCorsDomains = [][]byte{ - []byte("fonts.codeberg.org"), - []byte("design.codeberg.org"), + []byte("tilde.team"), } // BlacklistedPaths specifies forbidden path prefixes for all Codeberg Pages. diff --git a/html/404.html b/html/404.html index 08ab16d..0f806d4 100644 --- a/html/404.html +++ b/html/404.html @@ -5,33 +5,21 @@ %status - - - - - + + +
-

- This page was not found! -

+

This page was not found!

Sorry, this page doesn't exist or is inaccessible for other reasons (%status).
We hope this is not our fault ;) - Make sure to check the troubleshooting section in the Docs!
- - Static pages made easy - Codeberg Pages + + Static pages made easy - tildepages.org +
diff --git a/pages.service b/pages.service new file mode 100644 index 0000000..c11bd83 --- /dev/null +++ b/pages.service @@ -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 +