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

Michael Buesch 04e4ac1d31 backpy: Create new fsd/postd connection per request. 2 days ago
cms 77acf2f33d Remove deprecated Image.ANTIALIAS 3 days ago
cms-backd f7bbf1d31b Add empty frame for rust based backend 2 days ago
cms-cgi eb6d5947c6 cgi: Trim whitespace off of inputs 2 days ago
cms-fsd 5d63b76ead fsd: Keep I/O threads alive for a bit 2 days ago
cms-ident 6ce05092ab Fix doc warnings 1 week ago
cms-postd 7d3f613f10 postd: Add seccomp TODO 2 days ago
cms-seccomp a3a0d68a0d seccomp: Add timer and clock syscalls 3 days ago
cms-socket 31b9282e6e socket: Simplify sync read 1 week ago
cms-socket-back ea5a54e5d3 cgi: Better 404 handling 1 week ago
cms-socket-db 91a686fc09 db: Add image fetching 1 week ago
cms-socket-post 0a6b819b7f postd: Forward handler exceptions to client 3 weeks ago
cms-systemd 6ce05092ab Fix doc warnings 1 week ago
cmsbackpy 04e4ac1d31 backpy: Create new fsd/postd connection per request. 2 days ago
example b3711f9a5c example: Add required images directory 6 days ago
submodules da4d696699 Update submodule 'multipart' 6 months ago
test b06e8c31dc test: Force no-systemd 5 days ago
.gitignore 01c2824c22 Remove cython link 1 week ago
.gitmodules 9b65e4fc50 Remove usage of cgi module 2 years ago
Cargo.toml f7bbf1d31b Add empty frame for rust based backend 2 days ago
README.md f7259ee6a2 Convert readme to md 1 week ago
TODO a4e0639a7f Remove header todo entry 4 years ago
build.sh 01c2824c22 Remove cython link 1 week ago
cleantree.sh ac5f73d090 Rewrite build script 2 weeks ago
install-users.sh 175bbb275c install: Stop backd 1 week ago
install.sh 1c7abcdad6 Fix cython install path 1 week ago
setup.py fae0f546a1 Remove WSGI 1 week ago
setup_cython.py 8b8da85246 Fix Cython 3.x build 1 month ago

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