Commit graph

56 commits

Author SHA1 Message Date
Marcos de Oliveira
523b5f052c Use proc_open() instead of exec() for runing git commands
shell_exec() could be used instead, but proc_open() has the added
benefit
of runing commands directly (if passed as array), without forking a
shell.
Also, shell_exec returns only the command output, and there is no way to
capture return codes.
2021-05-28 11:56:23 +02:00
n
2266db03b7 Update links on codeberg.page 2021-05-19 21:01:48 +09:00
n
1ef87fa04b Fix fonts on codeberg.page 2021-05-19 20:51:53 +09:00
Andreas Shimokawa
91e8a89fb6 use codeberg.page for production 2021-04-28 12:52:33 +02:00
Moritz Marquardt
017b5852e0 Make URLs safe for raw pages, by using the Gitea API and gutting the request URI 2021-03-17 00:51:34 +01:00
Moritz Marquardt
c06c201b90 Allow CORS only to design.codeberg.org and fonts.codeberg.org, or on "raw.*.non-org-tld" 2021-03-16 15:46:29 +01:00
Moritz Marquardt
c5115c10fd Re-allow hosting HTML, JS & CSS from *.org
This resolves a regression from 5553585631 - `Content-Type: text/plain` was mistakenly set on pages like fonts.codeberg.org for HTML, JS and CSS files.
2021-03-16 13:28:08 +01:00
codeberg.org
21dcda3889 Support for raw content subdomain 2021-03-16 13:28:08 +01:00
Moritz Marquardt
04b94120dc Allow custom repo name for *.org pages & add design.codeberg.org 2021-03-06 18:41:19 +01:00
codeberg.org
b866134b9c raw content delivery support -- urls are raw.codeberg.eu/{owner}/{repo}/... 2020-12-28 00:30:46 +01:00
codeberg.org
f60ce37802 add 'page' and 'pages' to blacklisted owner list 2020-12-09 23:21:37 +01:00
codeberg.org
526931530e extend subdomain blocklist 2020-10-18 10:56:16 +02:00
codeberg.org
aa29a48487 accidentally blocked docs 2020-10-14 14:16:26 +02:00
codeberg.org
b31fcb9892 add a few more blacklisted subdomains 2020-10-14 13:49:59 +02:00
codeberg.org
a6975fcf52 reserved username blacklist 2020-10-14 12:12:12 +02:00
codeberg.org
cf6fae7d07 fix embarrassing alt tag typo, thanks to @n for catching this! 2020-10-11 12:41:21 +02:00
codeberg.org
ff06a5cfdc backlink and tweak margin 2020-10-09 21:49:08 +02:00
Codeberg
97b47db499 codeberg.eu subdomain support 2020-10-07 15:48:57 +02:00
n
926aeee281 Change logo type for new look 2020-09-05 21:34:20 +09:00
n
6156966eb3 Fix Codeberg Pages fonts 2020-09-03 20:53:33 +09:00
Andreas Shimokawa
36d7d5e1c4 use last revision as etag to improve caching 2020-09-02 13:53:43 +02:00
Andreas Shimokawa
b06dbbe075 set cache control to 180 seconds for codeberg pages 2020-09-02 11:55:36 +02:00
codeberg.org
cb590c7568 allow whitespace in URL 2020-08-31 00:23:31 +02:00
n
567ad40c56 Remove Google Fonts link 2020-06-26 21:21:31 +09:00
n
fd0366df51 Fix icon padding 2020-06-27 03:58:03 +09:00
n
9e0450c3b9 Self-host fonts (#22)
Self-host fonts
2020-06-25 21:47:21 +02:00
opyale
db7485915e Reformatting. 2020-06-20 00:55:25 +02:00
opyale
0a933be603 Initial commit. 2020-06-20 00:55:25 +02:00
codeberg.org
672dfa7540 point link to https://<username>.codeberg.eu/ 2020-06-18 23:39:50 +02:00
opyale
4d6e74e477 Using Tajawal as default font. 2020-06-18 23:23:35 +02:00
opyale
beddf91a52 Minor improvement. 2020-06-18 23:23:35 +02:00
opyale
b70a45b312 Initial commit. 2020-06-18 23:23:35 +02:00
Andreas Shimokawa
8a932d68b1 allow using codeberg pages without having a master branch
use HEAD instad
2020-06-18 13:18:34 +02:00
Andreas Shimokawa
330daaab5b test pages with subdomains 2020-06-17 23:06:33 +02:00
codeberg.org
3b79b7eb60 - var/www/pages/index.php : try adding .html suffix for incomplete URIs 2020-05-11 09:06:23 +02:00
codeberg.org
0e24c90354 var/www/pages/index.php : clarify comment 2020-05-04 23:59:54 +02:00
codeberg.org
b7cbd00f1d var/www/pages/index.php : whitespaces 2020-05-04 23:51:46 +02:00
codeberg.org
03508f2470 var/www/pages/index.php : improve look of URLs 2020-05-04 23:47:35 +02:00
codeberg.org
ee47caf42d var/www/pages/index.php : work around browser issues with relative links and directory URIs not ending on '/' 2020-05-04 23:43:52 +02:00
codeberg.org
1b10dec06f var/www/pages/index.php : use array_diff() instead of array_filter() 2020-05-04 22:56:19 +02:00
codeberg.org
f48218397a var/www/pages/index.php : filter empty URI parts mid-path 2020-05-04 22:46:54 +02:00
codeberg.org
0df931d3ee var/www/pages/index.php : comments 2020-05-04 22:24:56 +02:00
codeberg.org
43df6cdf2a var/www/pages/index.php : consistent string delimiters 2020-05-04 22:13:36 +02:00
codeberg.org
7948e2600e var/www/pages/index.php : fix typo 2020-05-04 22:09:15 +02:00
codeberg.org
a4c1bddd01 var/www/pages/index.php : more mime types, tidy-up 2020-05-04 22:00:19 +02:00
codeberg.org
32427136b7 var/www/pages/index.php : add comment 2020-05-04 21:20:56 +02:00
codeberg.org
981c0dd904 var/www/pages/index.php : properly handle directories, pipe unused output to /dev/null 2020-05-04 21:14:53 +02:00
codeberg.org
972c0879c3 avoid 302 redirect, rewrite URL for path with guessed index.html instead 2020-05-04 20:15:28 +02:00
codeberg.org
a46759fe57 var/www/pages/index.php : set HTTP status and MIME type for non-HTML files 2020-05-02 17:56:52 +02:00
Andreas Shimokawa
4b15fb1017 support 404.html 2020-05-02 16:27:02 +02:00