Masacarri is lightwight comment system. It can be embedded to your pages.
- Install docker and docker-compose.
- Prepare
docker-compose.yml: https://github.com/FoolsLab/Masacarri/blob/master/docker-compose.yml - set the environment variables.
DATABASE_URL: a valid url to postgreSQL DBSESSION_DATABASE_URL: a valid url to redis DBHOST: server host intended to usePORT: server port intended to useSITE_NAME: the name of your site. (This string will be used for notifing mail.)MASACARRI_USER: initial admin usernameMASACARRI_PASSWORD: initial admin passwordSMTP_HOST: smtp server host(for notifing mail)SMTP_PORT: smtp server port(for notifing mail)SMTP_USER: smtp account name(for notifing mail)SMTP_PASSWORD: smtp account password(for notifing mail)SMTP_ENCRYPTION: smtp encryption mode,tls/starttls/plainare availableSMTP_MAILADDR: mail addr(for notifing mail)
- Execute
docker-compose up -d.
Start Masacarri HTTP server and admin panel is available on /admin. You can register your pages and comment forms are available on each pages.
Insert this html on your pages.
<iframe id="masacarri" src="(url to the comment form)" style="border: none; width: 100%;"></iframe>
<script>
window.addEventListener('message', msg => {
if(msg.data[0] == 'masacarri-height'){
const frame = document.getElementById('masacarri');
frame.style.height = `${msg.data[1]}px`;
}
});
</script>The url to the comment form is available on the admin panel.