Openssd stands for Open (source) Super Simple Diary. Openssd is a plug-n-run project to host a version of yourself on the webternet.
- Debian or Ubuntu internet-facing virtual machine
- This repository forked or your own public github repository
To set up your environment, log into your server and run the install command.
ssh root@[ip_address]
curl -sSL https://raw.githubusercontent.com/kubeden/openssd/main/scripts/install.sh | bash
To configure and deploy your openssd, go to the openssd directory:
cd /var/www/openssd
open docker-compose.yml with a text editor of your choice and change the following strings:
- GITHUB_USERNAME=kubeden
- GITHUB_REPO=kubeden
- README_FILE=README.md
- INFO_FILE=INFO.md
- X_USER_FULL_NAME=Kuberdenis
- X_USERNAME=kubeden
- TEMPLATE_CHOICE=ssi
Make sure the github username & repository you have added to docker-compose.yml exist and are browsable.
Then when you have everything set up, run the following command:
curl -sSL https://raw.githubusercontent.com/kubeden/openssd/main/scripts/start.sh | bash
To add more articles to your website, navigate to /var/www/openssd
cd /var/www/openssd
and add your articles under the /articles
directory.
Then restart your application:
curl -sSL https://raw.githubusercontent.com/kubeden/openssd/main/scripts/stop.sh | bash
curl -sSL https://raw.githubusercontent.com/kubeden/openssd/main/scripts/start.sh | bash
Note: you can follow this guide to turn your cloned repository into your own fork and be able to push and store your articles: link
If you want to set a custom domain, go to your domain provider of choice and set the A record for
- www.yourdomain.ext
- yourdomain.ext
to point to your server IP.
After that open the nginx.conf
file and edit the following line:
server_name localhost;
to
server_name yourdomain.ext www.yourdomain.ext;
the run the stop script:
curl -sSL https://raw.githubusercontent.com/kubeden/openssd/main/scripts/stop.sh | bash
and then the start script again:
curl -sSL https://raw.githubusercontent.com/kubeden/openssd/main/scripts/start.sh | bash