Project home: https://bues.ch Original repository at: https://git.bues.ch/git/cms.git https://bues.ch

Michael Buesch b9f5474887 navtree: Suppress warning vor 46 Minuten
cms ff017d95a7 fsd: No hard error on ident validation failure vor 1 Tag
cms-backd b9f5474887 navtree: Suppress warning vor 46 Minuten
cms-cgi eb6d5947c6 cgi: Trim whitespace off of inputs vor 1 Monat
cms-fsd 3ee10b8419 service: Add env vor 1 Stunde
cms-ident 673a1bbe41 ident: Implement Default vor 1 Tag
cms-postd 3ee10b8419 service: Add env vor 1 Stunde
cms-seccomp a3a0d68a0d seccomp: Add timer and clock syscalls vor 1 Monat
cms-socket 4b07fd0c9b systemd: Clean up error handling vor 3 Wochen
cms-socket-back ea5a54e5d3 cgi: Better 404 handling vor 1 Monat
cms-socket-db 3a504b440e sock: Add TODOs vor 21 Stunden
cms-socket-post 0a6b819b7f postd: Forward handler exceptions to client vor 1 Monat
cms-systemd 4b07fd0c9b systemd: Clean up error handling vor 3 Wochen
cmsbackpy ea714e3cae backd: Add systemd files vor 4 Wochen
example e8bfefa257 example: Update AUTOIMG vor 1 Tag
submodules da4d696699 Update submodule 'multipart' vor 7 Monaten
test c35d65ff18 install: Add support for installing debug target vor 1 Stunde
.gitignore dacf434427 Add Cargo.lock to the repository vor 4 Wochen
.gitmodules 9b65e4fc50 Remove usage of cgi module vor 2 Jahren
Cargo.lock e299159bbb back: Implement POST handler vor 1 Stunde
Cargo.toml f7bbf1d31b Add empty frame for rust based backend vor 1 Monat
README.md f7259ee6a2 Convert readme to md vor 1 Monat
TODO a4e0639a7f Remove header todo entry vor 4 Jahren
build.sh c54f6b8239 test: Run debug by default vor 1 Woche
cleantree.sh dacf434427 Add Cargo.lock to the repository vor 4 Wochen
install-users.sh 665126587b permissions: Remove www-data group permission from git user vor 4 Wochen
install.sh c35d65ff18 install: Add support for installing debug target vor 1 Stunde
setup.py fae0f546a1 Remove WSGI vor 1 Monat
setup_cython.py 8b8da85246 Fix Cython 3.x build vor 2 Monaten

README.md

Simple Rust and Python based CMS

Copyright (c) 2011-2024 Michael Buesch m@bues.ch

Building

Run the build.sh script to build the CMS system.

The build requires the cargo-audit and cargo-auditable Rust crates installed:

cargo install cargo-audit cargo-auditable

The Python part requires the Cython compiler installed:

apt install cython3 python3 build-essential

After installing all build dependencies, run the build script:

./build.sh

Installing

After building, run the install-users.sh script to create the user/group structure for CMS in the operating system:

./install-users.sh

After that, run the install.sh script. It will install the CMS system into /opt/cms/.

./install.sh

Then create the database inside of /opt/cms/etc/cms/db/. You may start with the example db:

cp -r ./example/db/* /opt/cms/etc/cms/db/

Configuring Apache httpd

Configure the CMS CGI binary as CGI ScriptAlias:

ScriptAlias /cms /opt/cms/libexec/cms-cgi/cms.cgi

<Directory /opt/cms/libexec/cms-cgi>
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
    Require all granted
</Directory>

# Redirect all 404 to the CMS 404 handler (optional)
ErrorDocument 404 /cms/__nopage/__nogroup.html