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

Michael Buesch 377a9cc35a cgi: Add mmap to seccomp 6 mesiacov pred
cms cb4f85cf4f cms: Fix header list data type 6 mesiacov pred
cms-cgi 377a9cc35a cgi: Add mmap to seccomp 6 mesiacov pred
cms-fsd 10fa8e7e1c fsd: Install seccomp filter 6 mesiacov pred
cms-ident 6ce05092ab Fix doc warnings 6 mesiacov pred
cms-postd cd1bae91f7 Increase postd nice 6 mesiacov pred
cms-seccomp b485ebe242 seccomp: Allow build time compilation 6 mesiacov pred
cms-socket 31b9282e6e socket: Simplify sync read 6 mesiacov pred
cms-socket-back ea5a54e5d3 cgi: Better 404 handling 6 mesiacov pred
cms-socket-db 91a686fc09 db: Add image fetching 6 mesiacov pred
cms-socket-post 0a6b819b7f postd: Forward handler exceptions to client 6 mesiacov pred
cms-systemd 6ce05092ab Fix doc warnings 6 mesiacov pred
cmsbackpy cd1bae91f7 Increase postd nice 6 mesiacov pred
example b3711f9a5c example: Add required images directory 6 mesiacov pred
submodules da4d696699 Update submodule 'multipart' 1 rok pred
test b06e8c31dc test: Force no-systemd 6 mesiacov pred
.gitignore 01c2824c22 Remove cython link 6 mesiacov pred
.gitmodules 9b65e4fc50 Remove usage of cgi module 2 rokov pred
Cargo.toml 4ccde4b0cb Add seccomp crate 6 mesiacov pred
README.md f7259ee6a2 Convert readme to md 6 mesiacov pred
TODO a4e0639a7f Remove header todo entry 5 rokov pred
build.sh 01c2824c22 Remove cython link 6 mesiacov pred
cleantree.sh ac5f73d090 Rewrite build script 6 mesiacov pred
install-users.sh 175bbb275c install: Stop backd 6 mesiacov pred
install.sh 1c7abcdad6 Fix cython install path 6 mesiacov pred
setup.py fae0f546a1 Remove WSGI 6 mesiacov pred
setup_cython.py 8b8da85246 Fix Cython 3.x build 7 mesiacov pred

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