exempt .not(".line-numbers pre") from syntax highlighting | ||
---|---|---|
mario authored 766 days ago last checkin 55998a2e1 ⎘ | ||
π auth | Update comments on user.* table.βΉβΊ | 1325 days ago |
π cat | extroot version of file dump handler; here just doing a redirect thouβΉβΊ | 1136 days ago |
π changelog | NEWS-file generationβΉβΊ | 1136 days ago |
π config | Editing UI for additional `config` table entries.βΉβΊ | 1129 days ago |
π crashreport | Basic error-to-ticket conversion backend.βΉβΊ | 1317 days ago |
π fossil_common.php | Move db() and some utility code into include script. (So extroot scriβΉβΊ | 1129 days ago |
π fx_meta | Prepare meta tags for wiki pagesβΉβΊ | 1138 days ago |
π hooks | Add experimental hooks admin (not useful yet)βΉβΊ | 1127 days ago |
π index | fix PMD extraction regexβΉβΊ | 1325 days ago |
π micropub | Rough outline of how to map requests onto fossil commands.βΉβΊ | 1324 days ago |
π project.json | Introduce project.json listingβΉβΊ | 1128 days ago |
π sitemap | Generates sitemap.xml from wiki pages, doc files, technotesβΉβΊ | 1027 days ago |
π skin | Add some more adminstrative linksβΉβΊ | 1136 days ago |
π sqliteadmin | Use markdown error message for non-admin users.βΉβΊ | 1324 days ago |
π survey | crude survey tool (storage backend only)βΉβΊ | 1159 days ago |
π survey_sum | Add survey tbl display tool.βΉβΊ | 1159 days ago |
π token | Enable code_verifier/challenge test, add `token` script to upgrade frβΉβΊ | 1326 days ago |
π trees | Add GitHub trees queryβΉβΊ | 1128 days ago |
π user_config | Move fields declaration atop.βΉβΊ | 1327 days ago |
π wikitag | tag wiki pages (on initial artifactt)βΉβΊ | 1124 days ago |
extroot
extroot:
is a config directive for serving CGI extensions in Fossil.
The repo script could contain for example:
#!/usr/bin/fossil
repository: /fossil.d/sqlite.fossil
#directory: /fossil.d/
errorlog: /www/logs/fossil.errors.txt
cgi-debug: /www/logs/fossil.cgi.debug.log
extroot: /fossil.d/extroot
And the extroot/ dir would contain executable/CGI scripts, which then become accesssible
as http://fossil.example.org/repo/ext/auth
.
See https://fossil.include-once.org/fossil-skins/ext/index for a live view. (Note that all examples here rely on php-cgi
; thus probably won't work easily with chroot-jailed fossil setups.)
Note:
fossil_common.php
is now a required dependency for most scripts.
auth / token
Is a basic IndieAuth authorization_endpoint.
Which permits using fossil accounts for federated logins. It requires adding homepage urls either in info
column, or per ext/user_config in new homepage
field. And then augmenting your
personal homepage with:
<link rel=authorization_endpoint href="https://fossil.example.org/repo/ext/auth">
<link rel=token_endpoint href="https://fossil.example.org/repo/ext/token">
Thenceforth you can use one account for logging into various services (via e.g. IndieAuth.com or IndieLogin.com). The protocol is based on OAuth 2.0, but more convenient; it's also the spiritual successor to OpenID.
micropub
Both auth/token are also intended to be used with the publishing API. Which is actually intended for blogging, but here used to submit wiki pages or technotes from an external editor/app. It should be bound on a user homepage or in the repo with:
<link rel=micropub href="https://fossil.example.org/repo/ext/micropub">
The implementation is a bind long-winded, because it prepares for a more general micropub editor.
user_config
Allows logged in users to edit user.info
or new user.homepage
field. (Both are scanned by auth extension for urls.)
index
Simply lists existing CGI scripts.
sqliteadmin
Is a cgi-prefixed version of phpLiteAdmin, only accessible to admin users (s
capability). Which allows some simpler table browsing than /admin_sql. Primarily useful for data tables. Unfortunately you can't limit browsing or queries to elected tables - would be a more useful tool if it could be made accessible to any developer.
crashreport
Basic backend to store application errors/exceptions as tickets. (When submitted as JSON blob per POST request.)
skin
Combines editing of header/footer/css/js/th1-setup for current skin. (Sidesteps draftX publishing, and keeps ample backups instead.)
fx_meta
Generates <meta>
twitter card fields for wiki pages. (Was supposed to also embed raw/ <link>
s for file browsing, but that's probably better done in a th1 function.)
cat
Is an ext/ version of the /cat/filename.txt shorthand.
config
Allows to set additional project options (utilizes plugin meta data from all scripts).
trees
Emulates GitHubβs trees API.
changelog
Extroot-version of the NEWS-file generator.