Browse Source

first commit

master
Colat 11 months ago
commit
c17f56e68c
  1. 50
      README.md
  2. BIN
      columnsSample.png
  3. 21
      customization.css
  4. 20
      nginx_site
  5. 11
      reveal-md.service

50
README.md

@ -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
```

BIN
columnsSample.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

21
customization.css

@ -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;
}

20
nginx_site

@ -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;
}
}

11
reveal-md.service

@ -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…
Cancel
Save