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

Michael Buesch 2ed02c39d5 back: Move communication преди 1 час
cms 77acf2f33d Remove deprecated Image.ANTIALIAS преди 1 месец
cms-backd 2ed02c39d5 back: Move communication преди 1 час
cms-cgi eb6d5947c6 cgi: Trim whitespace off of inputs преди 1 месец
cms-fsd 66d1d2b882 backd: Clear cache on SIGHUP преди 2 седмици
cms-ident da49b3edc8 ident: Fix URL generation for root преди 2 седмици
cms-postd de0dc2f0ac Add more backd code преди 4 седмици
cms-seccomp a3a0d68a0d seccomp: Add timer and clock syscalls преди 1 месец
cms-socket 4b07fd0c9b systemd: Clean up error handling преди 2 седмици
cms-socket-back ea5a54e5d3 cgi: Better 404 handling преди 1 месец
cms-socket-db 91a686fc09 db: Add image fetching преди 1 месец
cms-socket-post 0a6b819b7f postd: Forward handler exceptions to client преди 1 месец
cms-systemd 4b07fd0c9b systemd: Clean up error handling преди 2 седмици
cmsbackpy ea714e3cae backd: Add systemd files преди 3 седмици
example ece421bdaa Add backd config преди 2 седмици
submodules da4d696699 Update submodule 'multipart' преди 7 месеца
test c54f6b8239 test: Run debug by default преди 6 дни
.gitignore dacf434427 Add Cargo.lock to the repository преди 3 седмици
.gitmodules 9b65e4fc50 Remove usage of cgi module преди 2 години
Cargo.lock 48a81335b6 Update dependencies преди 5 часа
Cargo.toml f7bbf1d31b Add empty frame for rust based backend преди 1 месец
README.md f7259ee6a2 Convert readme to md преди 1 месец
TODO a4e0639a7f Remove header todo entry преди 4 години
build.sh c54f6b8239 test: Run debug by default преди 6 дни
cleantree.sh dacf434427 Add Cargo.lock to the repository преди 3 седмици
install-users.sh 665126587b permissions: Remove www-data group permission from git user преди 3 седмици
install.sh ece421bdaa Add backd config преди 2 седмици
setup.py fae0f546a1 Remove WSGI преди 1 месец
setup_cython.py 8b8da85246 Fix Cython 3.x build преди 2 месеца

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