
commit
c17f56e68c
5 changed files with 102 additions and 0 deletions
@ -0,0 +1,50 @@
|
||||
# Reveal-md setup manual # |
||||
|
||||
This manual will cover the installation process of reveal-md including how to use nginx with reverse proxy with an https certificate from let's encrypt |
||||
|
||||
## 1. Reveal-md install |
||||
|
||||
First install nodejs on the machine, the process might vary depending on the linux distribution. |
||||
[Official Nodejs Manual](https://nodejs.org/es/download/package-manager/) |
||||
|
||||
Once you have npm installed you need to execute the following command in order to install reveal-md |
||||
``` |
||||
npm install -g reveal-md |
||||
``` |
||||
To check that reveal have been installed correctly execute: |
||||
``` |
||||
reveal-md SLIDES.md --port 80 |
||||
``` |
||||
|
||||
If everything is working correctly the slides should be accessible throught web browser |
||||
|
||||
## 2.- reveal-md as service and customization |
||||
|
||||
|
||||
|
||||
## 3. Nginx + certbot |
||||
|
||||
First install nginx with your packet manager |
||||
``` |
||||
apt update |
||||
apt install nginx |
||||
``` |
||||
|
||||
[ng](nginx_site) |
||||
|
||||
After that, install certbot, the process might vary depending on the linux distribution. If you have snap in the system it's the easiest way to install it. |
||||
|
||||
Otherwise here you have a list of manuals on how to install it on any distribution. |
||||
https://certbot.eff.org/all-instructions |
||||
|
||||
|
||||
``` |
||||
sudo snap install --classic certbot |
||||
sudo ln -s /snap/bin/certbot /usr/bin/certbot |
||||
sudo certbot --nginx |
||||
``` |
||||
|
||||
In order to automatically renew the certificates, add the following command to the crontab. |
||||
``` |
||||
sudo certbot renew --dry-run |
||||
``` |
After Width: | Height: | Size: 220 KiB |
@ -0,0 +1,21 @@
|
||||
.left { |
||||
text-align: left; |
||||
float: left; |
||||
z-index:-10; |
||||
width:48%; |
||||
font-size: 0.85em; |
||||
line-height: 1.5; |
||||
} |
||||
|
||||
.right { |
||||
float: right; |
||||
text-align: left; |
||||
z-index:-10; |
||||
width:48%; |
||||
font-size: 0.85em; |
||||
line-height: 1.5; |
||||
} |
||||
|
||||
div.slides { |
||||
width: 80% !important; |
||||
} |
@ -0,0 +1,20 @@
|
||||
server { |
||||
server_name localhost; |
||||
location = / { |
||||
return 302 /README.md; |
||||
} |
||||
location / { |
||||
proxy_pass http://localhost:8080; |
||||
} |
||||
} |
||||
|
||||
server { |
||||
server_name localhost; |
||||
|
||||
location = / { |
||||
return 302 /README.md; |
||||
} |
||||
location / { |
||||
proxy_pass http://localhost:8080; |
||||
} |
||||
} |
@ -0,0 +1,11 @@
|
||||
[Unit] |
||||
Description=reveal-md web server |
||||
After=network.target |
||||
|
||||
[Service] |
||||
Type=simple |
||||
ExecStart=reveal-md /home/uadm/hacklablogout_presentaciones/README.md --port 8080 --theme moon --separator "#HSLIDE" --vertical-separator "#VSLIDE" --host yodabot.duckdns.org --css /root/reveal.css |
||||
Restart=on-failure |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
Loading…
Reference in new issue