From e36e4eef1eceb77cc765fc16e7d0135a5f951bd1 Mon Sep 17 00:00:00 2001 From: import this <97586125+serinko@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:27:15 +0000 Subject: [PATCH] update proxy setup syntax --- .../src/nodes/proxy-configuration.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/documentation/operators/src/nodes/proxy-configuration.md b/documentation/operators/src/nodes/proxy-configuration.md index ff4864e801..2e9084ab15 100644 --- a/documentation/operators/src/nodes/proxy-configuration.md +++ b/documentation/operators/src/nodes/proxy-configuration.md @@ -18,7 +18,7 @@ This guide contains several variables. Substitute them with your own value, with | `` | Port listening to WSS, default is `9001` | 9001 | | `` | Any text you want to show on the landing page | Welcome to Nym Node, operator contact is example@email.me | | `` | A sub-directory located at `/var/www/` containing html configuration files | `/var/www/exit-gateway1.squad.nsl` | -| `` | A local only `nym-node` identifier, specified by flag `--id`, default is `default-nym-node` | alice_super_node | +| `` | A local only `nym-node` identifier, specified by flag `--id`, default is `default-nym-node` | alice_super_node | | `` | Specify a full path to the given file, directory or binary behind this variable | `/root/src/nym/target/release/` | ```admonish warning title="" @@ -309,7 +309,7 @@ Now your html page is configured. ### `nym-node` Configuration -When done with the customization, you'll need to make sure your `nym-node` uploads the file and reference to it. This is done by opening your node configuration file located at `~/.nym/nym-nodes//config/config.toml` and changing the value of the line `landing_page_assets_path` on the `[http]` section: +When done with the customization, you'll need to make sure your `nym-node` uploads the file and reference to it. This is done by opening your node configuration file located at `~/.nym/nym-nodes//config/config.toml` and changing the value of the line `landing_page_assets_path` on the `[http]` section: ``` landing_page_assets_path = '' ``` @@ -364,7 +364,7 @@ server { listen 443 ssl http2; listen [::]:443 ssl http2; - server_name nym-exit.; + server_name ; ssl_certificate /etc/letsencrypt/live//fullchain.pem; ssl_certificate_key /etc/letsencrypt/live//privkey.pem; @@ -486,7 +486,7 @@ sudo chown -R $USER:$USER /var/www/ echo "

" | sudo tee /var/www//index.html ``` -4. When done with the customization, you'll need to make sure your `nym-node` uploads the file and reference to it. This is done by opening your node configuration file located at `~/.nym/nym-nodes//config/config.toml` and changing the value of the line `landing_page_assets_path` on the `[http]` section: +4. When done with the customization, you'll need to make sure your `nym-node` uploads the file and reference to it. This is done by opening your node configuration file located at `~/.nym/nym-nodes//config/config.toml` and changing the value of the line `landing_page_assets_path` on the `[http]` section: ```sh landing_page_assets_path = '' @@ -800,14 +800,9 @@ ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled nginx -t ``` -6. Restart `nginx`: -```sh -systemctl daemon-reload && systemctl restart nginx -``` - #### SSL Setup using certbot -7. Get an `SSL` certificate using certbot: +6. Get an `SSL` certificate using certbot: ```sh apt install certbot python3-certbot-nginx @@ -815,6 +810,11 @@ certbot renew --dry-run certbot --nginx -d ``` +7. Restart `nginx`: +```sh +systemctl daemon-reload && systemctl restart nginx +``` + 8. Restart your `nym-node` or if you're running your `nym-node` as a [`systemd` service](configuration.md#systemd), restart your service: ```sh systemctl daemon-reload