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

Michael Buesch 24aa31cff1 Update dependencies 3 дней назад
.github cad5b9b1ad Add CI недель назад: 3
cms-backd eb2fde2d76 Simplify trait bound недель назад: 2
cms-cgi 6e2e2e24b7 Remove warnings for Ident 2 месяцев назад
cms-fsd 45fcd65e4d Limit the number of blocking threads 1 месяц назад
cms-ident 6e2e2e24b7 Remove warnings for Ident 2 месяцев назад
cms-postd 6b8f046af7 pyrunner: Lifetime can be elided недель назад: 3
cms-seccomp 9aef64565a seccomp: Fix unix socket rule 2 месяцев назад
cms-socket 1ba72f0825 Move all dependencies to workspace 5 месяцев назад
cms-socket-back 1ba72f0825 Move all dependencies to workspace 5 месяцев назад
cms-socket-db 1ba72f0825 Move all dependencies to workspace 5 месяцев назад
cms-socket-post 1ba72f0825 Move all dependencies to workspace 5 месяцев назад
cms-systemd 1ba72f0825 Move all dependencies to workspace 5 месяцев назад
example 0d0989da3f example: Fix test page 7 месяцев назад
test e1178499f3 test/cgi: Add path 7 месяцев назад
.gitignore 1902ec2e04 Update .gitignore 7 месяцев назад
Cargo.lock 24aa31cff1 Update dependencies 3 дней назад
Cargo.toml 20bf1b9a26 Upgrade pyo3 1 месяц назад
LICENSE-APACHE 33156c0d9c Add Apache 2.0 license 7 месяцев назад
LICENSE-MIT 7cf8f7c655 Add MIT license 7 месяцев назад
README.md 07a251310c Rename user script 4 месяцев назад
TODO a4e0639a7f Remove header todo entry 5 лет назад
build.sh c73682bb74 Fix build with cargo-audit 0.21 1 месяц назад
create-users.sh 07a251310c Rename user script 4 месяцев назад
install.sh db0e799a69 install: Disable services 6 месяцев назад

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 create-users.sh script to create the user/group structure for CMS in the operating system:

./create-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