diff --git a/docs/stake-pool-guides/ogmios.md b/docs/stake-pool-guides/ogmios.md index 497284ed..6b17611e 100644 --- a/docs/stake-pool-guides/ogmios.md +++ b/docs/stake-pool-guides/ogmios.md @@ -2,7 +2,6 @@ :::caution Basic auth without TLS This guide is not going to cover Nginx with TLS. Be aware that sending the basic auth username and password to Nginx will be clear text over the wire. For TLS with certbot and Nginx you will need a DNS name. This is a simple protection to prevent abuse. Use a simple password and know it can be read by 5 eyes. - ::: Grab the latest Ogmios binary here for your systems architecture. @@ -13,7 +12,7 @@ Put it somewhere in system PATH. I use ~/.local/bin but you can put the binary i ### Make sure ~/.local/bin exists and grab the binary. -``` +```sh mkdir ~/.local/bin mkdir ~/tmp cd ~/tmp @@ -27,14 +26,14 @@ chmod +x ~/.local/bin/ogmios Add ~/.local/bin to the users PATH -``` +```sh cd ~/.local/bin; echo "export PATH=\"$PWD:\$PATH\"" >> $HOME/.bashrc source ~/.bashrc ``` ## Confirm Ogmios is in PATH -``` +```sh ogmios version ``` @@ -42,32 +41,32 @@ ogmios version Create a startup script for Ogmios edit below to correct socket and config.json locations. -``` +```sh nano ${HOME}/.local/bin/ogmios-service ``` -``` +```sh #!/bin/bash ogmios --host 127.0.0.1 --node-socket --node-config ``` Make it executable. -``` +```sh chmod +x ${HOME}/.local/bin/ogmios-service ``` Test it. ctrl+c to exit. -``` +```sh ${HOME}/.local/bin/ogmios-service ``` ## Create the systemd unit file. -``` +```sh sudo tee /etc/systemd/system/ogmios.service < sudo chmod 640 /etc/nginx/.ogmios ``` @@ -119,7 +118,7 @@ sudo chmod 640 /etc/nginx/.ogmios ### Create Nginx server block -``` +```sh sudo tee /etc/nginx/sites-available/ogmios > /dev/null <