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

Michael Buesch 2a9a9c82c1 Refresh dependencies vor 12 Stunden
cms-backd 6884205878 systemd: Invert PartOf relation vor 12 Stunden
cms-cgi e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-fsd 6884205878 systemd: Invert PartOf relation vor 12 Stunden
cms-ident e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-postd 6884205878 systemd: Invert PartOf relation vor 12 Stunden
cms-seccomp e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-socket e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-socket-back e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-socket-db e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-socket-post e8fce8681a Fix license in Cargo.toml vor 1 Woche
cms-systemd e8c386ec29 systemd: Error out, if no fds are received from systemd vor 12 Stunden
example 0d0989da3f example: Fix test page vor 1 Woche
test e1178499f3 test/cgi: Add path vor 1 Woche
.gitignore 1902ec2e04 Update .gitignore vor 1 Woche
Cargo.lock 2a9a9c82c1 Refresh dependencies vor 12 Stunden
Cargo.toml f7bbf1d31b Add empty frame for rust based backend vor 1 Monat
LICENSE-APACHE 33156c0d9c Add Apache 2.0 license vor 2 Wochen
LICENSE-MIT 7cf8f7c655 Add MIT license vor 2 Wochen
README.md ce0c0d3289 Remove all Python code vor 1 Woche
TODO a4e0639a7f Remove header todo entry vor 4 Jahren
build.sh ce0c0d3289 Remove all Python code vor 1 Woche
install-users.sh 665126587b permissions: Remove www-data group permission from git user vor 1 Monat
install.sh 6884205878 systemd: Invert PartOf relation vor 12 Stunden

README.md

Simple Rust 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

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