Skip to content

Commit

Permalink
Merge pull request #81 from miguelgfierro/reinstall
Browse files Browse the repository at this point in the history
Update reinstall
  • Loading branch information
miguelgfierro committed Mar 21, 2021
2 parents a801ca0 + d20ec09 commit 6765925
Show file tree
Hide file tree
Showing 28 changed files with 560 additions and 381 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -18,3 +18,5 @@ bibtex/
docs/
static/
staticfiles/
django.log

17 changes: 11 additions & 6 deletions README.md
Expand Up @@ -38,7 +38,7 @@ We need to install several libraries. In Linux the commands are:
$ apt-get install -y python-dev libpq-dev python-pip git apache2 libapache2-mod-wsgi build-essential
$ pip install -r requirements.txt

NOTE: Django version must be 1.7 and Python has to be version 2.7.
NOTE: Django version must be 1.8 and Python has to be version 2.7.

## Set up the project in localhost

Expand Down Expand Up @@ -131,19 +131,24 @@ Then you need to know the IP of your computer. In Linux and Mac the command is `

## Secure page with SSL certificate (optional)

You can install a free SSL certificate with [Let's Encript](https://letsencrypt.org/). Google prioritizes pages with [SSL security](http://googlewebmastercentral.blogspot.be/2014/08/https-as-ranking-signal.html), so https has became a key element for SEO. The first step is to set to True the flag `HTTPS` in settings.py.
You can install a free SSL certificate with [Let's Encrypt](https://letsencrypt.org/). Google prioritizes pages with [SSL security](http://googlewebmastercentral.blogspot.be/2014/08/https-as-ranking-signal.html), so https has became a key element for SEO. The first step is to set to True the flag `HTTPS` in `settings.py`.

In order to activate the SSL, make sure you assign your domain to the IP of the VPS. For that, go to your DNS configuration and add an A entry with:
* Domain: example.com
* Type: A
* Target: <YOUR_IP>

The basic installation in an apache server is very straightforward, as it is explained [here](https://letsencrypt.org/getting-started/). In the file sciblog.conf you have the configuration to activate the SSL. Furthermore, it allows to redirect http://example.com, https://example.com, http://www.example.com to https://example.com.

$ wget https://dl.eff.org/certbot-auto
$ chmod a+x certbot-auto
$ ./certbot-auto --apache --email your_email@example.com
$ snap install --classic certbot
$ ln -s /snap/bin/certbot /usr/bin/certbot
$ certbot --apache --email your_email@example.com
$ a2enmod ssl
$ service apache2 restart

When the certificate expires, you just need to renew it.

$ ./certbot-auto renew --quiet --no-self-upgrade
$ certbot renew --quiet --no-self-upgrade
$ service apache2 restart

Once the SSL certificate is installed, you can check the security of your page using [this web](https://www.ssllabs.com/ssltest/index.html).
Expand Down
3 changes: 2 additions & 1 deletion blog/static/blog/css/paper.css
Expand Up @@ -300,8 +300,9 @@ p.wrap {
}
.social-icons{
margin-top: 5rem;
margin-left: 1.8rem;
overflow: hidden;
display: flex;
justify-content: center;
}
.social-icons-fb, .social-icons-tw, .social-icons-gp, .social-icons-lk, .social-icons-email{
display: block;
Expand Down
2 changes: 1 addition & 1 deletion blog/static/blog/css/paper.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion blog/static/blog/css/paper_mobile.css
Expand Up @@ -300,8 +300,9 @@ p.wrap {
}
.social-icons{
margin-top: 5rem;
margin-left: 1.8rem;
overflow: hidden;
display: flex;
justify-content: center;
}
.social-icons-fb, .social-icons-tw, .social-icons-gp, .social-icons-lk, .social-icons-email, .social-icons-whatsapp{
display: block;
Expand Down

0 comments on commit 6765925

Please sign in to comment.