Giter Club home page Giter Club logo

radicale-server-configuration's Introduction

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old
nano /etc/ssh/sshd_config
systemctl restart ssh.service
python3 -m pip install --upgrade radicale
useradd --system --user-group --home-dir / --shell /sbin/nologin radicale
mkdir -p /etc/radicale/
mkdir -p /var/lib/radicale/collections/
chown -R radicale:radicale /var/lib/radicale/collections/
chmod -R o= /var/lib/radicale/collections/
openssl passwd -6
nano /etc/nginx/htpasswd
chmod u=rw /etc/nginx/htpasswd
nano /etc/radicale/config
nano /lib/systemd/system/radicale.service
ln -s /lib/systemd/system/radicale.service /etc/systemd/system/radicale.service
nano /etc/nginx/nginx.conf

    server_tokens off;

unlink /etc/nginx/modules-enabled/50-mod-http-geoip.conf
unlink /etc/nginx/modules-enabled/50-mod-mail.conf
unlink /etc/nginx/sites-enabled/default
nano /etc/nginx/sites-available/reverse-proxy.conf
ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf
systemctl restart nginx.service
certbot --agree-tos --nginx -d CHANGEME
nano /etc/letsencrypt/options-ssl-nginx.conf
systemctl start radicale.service
systemctl enable radicale.service
systemctl daemon-reload
systemctl restart nginx.service
certbot renew --dry-run

cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
nano /etc/fail2ban/jail.local

    ignoreip = 127.0.0.1/8 ::1

    [sshd]
    enabled = true
    port    = ssh

    [nginx-http-auth]
    enabled = true
    filter  = nginx-http-auth

systemctl daemon-reload
systemctl restart fail2ban.service

radicale-server-configuration's People

Contributors

xch12i5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.