From c92304ea2218773e62c43b424144dd9eeb298efe Mon Sep 17 00:00:00 2001
From: serinko <97586125+serinko@users.noreply.github.com>
Date: Thu, 24 Oct 2024 17:21:12 +0200
Subject: [PATCH] fix merge errors, path errors, dump uselss dinosaurs - BUILT
THE F*N DOCS w success
---
.../nym-node => backup-pages}/bak-setup.mdx | 0
.../docker-monitor.md | 0
.../nodes/node-migrate-command-tabs.tsx | 4 +-
.../outputs/api-scraping-outputs/time-now.md | 2 +-
documentation/docs/next-env.d.ts | 2 +-
.../archive/nymvpn/troubleshooting.md | 97 --------------
.../configuration/proxy-configuration.mdx | 125 +-----------------
7 files changed, 5 insertions(+), 225 deletions(-)
rename documentation/{docs/pages/operators/nodes/nym-node => backup-pages}/bak-setup.mdx (100%)
rename documentation/{docs/pages/operators/nodes/performance-and-testing/prometheus-grafana => backup-pages}/docker-monitor.md (100%)
delete mode 100644 documentation/docs/pages/developers/archive/nymvpn/troubleshooting.md
diff --git a/documentation/docs/pages/operators/nodes/nym-node/bak-setup.mdx b/documentation/backup-pages/bak-setup.mdx
similarity index 100%
rename from documentation/docs/pages/operators/nodes/nym-node/bak-setup.mdx
rename to documentation/backup-pages/bak-setup.mdx
diff --git a/documentation/docs/pages/operators/nodes/performance-and-testing/prometheus-grafana/docker-monitor.md b/documentation/backup-pages/docker-monitor.md
similarity index 100%
rename from documentation/docs/pages/operators/nodes/performance-and-testing/prometheus-grafana/docker-monitor.md
rename to documentation/backup-pages/docker-monitor.md
diff --git a/documentation/docs/components/operators/nodes/node-migrate-command-tabs.tsx b/documentation/docs/components/operators/nodes/node-migrate-command-tabs.tsx
index 89068c0c7f..01212c4318 100644
--- a/documentation/docs/components/operators/nodes/node-migrate-command-tabs.tsx
+++ b/documentation/docs/components/operators/nodes/node-migrate-command-tabs.tsx
@@ -1,6 +1,6 @@
import { Tabs } from "nextra/components";
-import Mixnodes from "operators/snippets/mixnode-migrate-tab-snippet.mdx";
-import Gateways from "operators/snippets/gateway-migrate-tab-snippet.mdx";
+import Mixnodes from "components/operators/snippets/mixnode-migrate-tab-snippet.mdx";
+import Gateways from "components/operators/snippets/gateway-migrate-tab-snippet.mdx";
export const MigrateTabs = () => {
return (
diff --git a/documentation/docs/components/outputs/api-scraping-outputs/time-now.md b/documentation/docs/components/outputs/api-scraping-outputs/time-now.md
index 4089f3f1e9..ec59a2affc 100644
--- a/documentation/docs/components/outputs/api-scraping-outputs/time-now.md
+++ b/documentation/docs/components/outputs/api-scraping-outputs/time-now.md
@@ -1 +1 @@
-Thursday, October 24th 2024, 14:37:25 UTC
+Thursday, October 24th 2024, 15:17:10 UTC
diff --git a/documentation/docs/next-env.d.ts b/documentation/docs/next-env.d.ts
index 4f11a03dc6..a4a7b3f5cf 100644
--- a/documentation/docs/next-env.d.ts
+++ b/documentation/docs/next-env.d.ts
@@ -2,4 +2,4 @@
///
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
+// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
diff --git a/documentation/docs/pages/developers/archive/nymvpn/troubleshooting.md b/documentation/docs/pages/developers/archive/nymvpn/troubleshooting.md
deleted file mode 100644
index 1ae4046cdb..0000000000
--- a/documentation/docs/pages/developers/archive/nymvpn/troubleshooting.md
+++ /dev/null
@@ -1,97 +0,0 @@
-# Troubleshooting
-
-Below are listed some points which may need to be addressed when testing NymVPN alpha. If you crashed into any errors which are not listed, please contact us at the testing workshop or in the NymVPN [Matrix channel](https://matrix.to/#/#NymVPN:nymtech.chat).
-
-#### NymVPN attempts to connect to sandbox testnet
-
-If you testing the latest versions and you correctly expect the client to run over the mainnet, but it listens to `https://sandbox-nym-api1.nymtech.net`, it's probably because of your previous configuration.
-
-Check your `config.toml` either in the directory from which you run your client or in `~/.config/nym-vpn/` and remove `sandbox.env` from the config file and folder.
-
-If the problem persists (probably due to some locally cache) download [`mainnet.env`](https://github.com/nymtech/nym/blob/master/envs/mainnet.env) and save it to the same directory.
-
-#### Running GUI failed due to `TOML parse error`
-
-If you see this error when running NymVPN alpha desktop, it's because the older versions needed entry location in `config.toml` configuration file. From `v0.0.3` the entry location is selected directly by the user in the application. This error is due to an old `app-data.toml` config in your computer.
-
-```sh
-2024-02-15T14:25:02.745331Z ERROR read: nym_vpn_desktop::fs::storage: TOML parse error at line 5, column 1
- |
-5 | [entry_node_location]
- | ^^^^^^^^^^^^^^^^^^^^^
-wanted exactly 1 element, more than 1 element
- self=AppStorage { data: AppData { monitoring: None, autoconnect: None, killswitch: None, entry_location_selector: None, ui_theme: None, ui_root_font_size: None, vpn_mode: None, entry_node_location: None, exit_node_location: None }, dir_path: "/home/companero/.local/share/nym-vpn", filename: "app-data.toml", full_path: "/home/companero/.local/share/nym-vpn/app-data.toml" }
-Error: TOML parse error at line 5, column 1
- |
-5 | [entry_node_location]
- | ^^^^^^^^^^^^^^^^^^^^^
-wanted exactly 1 element, more than 1 element
-```
-
-Simply delete this file `app-data.toml` from the path listed in the error message. In the example above it would be `/home/companero/.local/share/nym-vpn/app-data.toml`.
-
-The application will create a new one on startup.
-
-#### Thread `main` panicked
-
-If you see a message like:
-```sh
-thread 'main' panicked at /Users/runner/.cargo/git/checkouts/mullvadvpn-app-a575cf705b5dfd76/ccfbaa2/talpid-routing/src/unix.rs:301:30:
-```
-Restart your wifi connection and start again.
-
-#### MacOS alert on NymVPN UI startup
-
-If you are running NymVPN on mac OS for the first time, you may see this alert message:
-
-
-
-1. Head to System Settings -> Privacy & Security and click `Allow anyway`
-
-
-
-2. Confirm with your password or TouchID
-
-3. Possibly you may have to confirm again upon running the application
-
-
diff --git a/documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx b/documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
index 1a65b31481..8e65549332 100644
--- a/documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
+++ b/documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
@@ -22,30 +22,12 @@ Since SSL certificates can only be issued for a domain name and not an IP addres
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-| Variable | Description | Syntax example |
-| :-------------------- | :------------------------------------------------------------------------------------------ | :-------------------------------------------------------- |
-| `` | Your registered DNS domain, asigned to the VPS with `nym-node` | exit-gateway1.squad.nsl |
-| `` | 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 |
-| `` | Specify a full path to the given file, directory or binary behind this variable | `/root/src/nym/target/release/` |
-=======
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
The commands in this setup need to be run with root permission. Either add a prefix `sudo` or execute them from a root shell.
## Reverse Proxy Setup
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-
-```admonish info
-This guide was created by a Nym node operator, [Avril 14th](https://avril14th.org) as a part of [Nym Operators Community Counsel](../legal/community-counsel.md), edited by Nym.
-```
-=======
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
The following snippet needs be modified as described below according to the public identity that you may want to show on this public notice, i.e. your graphics and your email.
It would allow you to serve it as a landing page resembling the one proposed by [Tor](https://gitlab.torproject.org/tpo/core/tor/-/raw/HEAD/contrib/operator-tools/tor-exit-notice.html) but with all the changes needed to adhere to the Nym's operators case.
@@ -333,37 +315,24 @@ 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:
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-```
-landing_page_assets_path = ''
-=======
```toml
landing_page_assets_path = ''
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```
### Reverse Proxy Configuration
You may set up a [reverse proxy](https://www.nginx.com/resources/glossary/reverse-proxy-server) in order to serve this landing page with proper SSL and DNS management, i.e. to resolve it to `https://`.
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-**Configure Nginx**
-=======
###### 1. Configure Nginx and firewall
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
- Install `nginx`:
```sh
sudo apt install nginx
```
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-1. Setup firewall with `ufw`. `ufw` has three profile pre-configured for `nginx`, we will need the first one for `nym-node`:
-=======
- Setup firewall with `ufw`. `ufw` has three profile pre-configured for `nginx`, we will need the first one for `nym-node`:
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
- `Nginx Full`: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
- `Nginx HTTP`: This profile opens only port 80 (normal, unencrypted web traffic)
@@ -379,11 +348,7 @@ ufw status
ufw reload
```
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-3. Disable the default Nginx landing page
-=======
- Disable the default Nginx landing page
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```
systemctl status nginx
@@ -391,14 +356,9 @@ unlink /etc/nginx/sites-enabled/default
systemctl restart nginx
```
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-4. Add your endpoint configuration to Nginx by creating file:
-
-=======
###### 2. Add your endpoint configuration to Nginx by creating a config file
- Open file in a text editor
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```sh
nano /etc/nginx/sites-available/
```
@@ -420,29 +380,18 @@ server {
}
}
```
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-This guide assumes that the HTTP port used by you is `8080`. Adjust the configuration accordingly if you have defined
-a custom port for your `nym-node` HTTP connections
-
-5. Activate the configuration by creating a symlink to `/etc/nginx/sites-enabled`:
-=======
- Note: This guide assumes that the HTTP port used by you is `8080` (recommended default) . Adjust the configuration accordingly if you have defined
a custom port for your `nym-node` HTTP connections
###### 3. Activate and test Nginx configuration
- Create a symlink to `/etc/nginx/sites-enabled`:
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```sh
ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled
```
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-6. Test your configuration syntax:
-=======
- Test your configuration syntax:
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```sh
nginx -t
@@ -450,11 +399,7 @@ nginx -t
Nginx must report that the config is "ok" and the test was successful.
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-7. Restart `nginx`:
-=======
- Restart `nginx`:
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```sh
systemctl restart nginx
@@ -469,19 +414,10 @@ certbot --nginx --non-interactive --agree-tos --redirect -m
- Restart your `nym-node` or if you're running your `nym-node` as a [`systemd` service](../configuration.mdx#systemd), restart your service:
```sh
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-systemctl daemon-reload && systemctl restart nym-node
-```
-
-9. Check for the page being served reading the service logs
-```sh
-journalctl -u nym-node.service | grep 8080
-=======
systemctl daemon-reload && service nym-node restart
```
###### 5. Verify that your page is working
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
- Check for the page being served reading the service logs
```sh
@@ -501,27 +437,14 @@ Now your `nginx` should be configured, up and running. Test it by inserting your
This section assumes that you have already configured a reverse proxy and have set it up to work over https. If not, head over to [the reverse proxy section](#reverse-proxy-configuration) to configure it.
We strongly recommend node operators to configure secure web sockets on their nodes. This will provide clients a more secure way to connect to your node.
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-
-You can read more about *Secure Socket Layer* (SSL) in [here](https://www.geeksforgeeks.org/secure-socket-layer-ssl/).
-=======
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
You can read more about *Secure Socket Layer* (SSL) in [here](https://www.geeksforgeeks.org/secure-socket-layer-ssl/).
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-Remember that there may be some unique variables and customization depending on the way your reverse proxy is setup which you may have to adjust when configuring WSS to ensure correct functionality
-
-```admonish tip
-To see description of used variables (noted in `<>` brackets), scroll to the top of this page, chapter [*Variables Explanation*](#variables-explanation).
-```
-=======
Remember that there may be some unique variables and customization depending on the way your reverse proxy is setup which you may have to adjust when configuring WSS to ensure correct functionality.
To see description of used variables (noted in `<>` brackets), visit [Variables & Paramteres](https://nymtech.net/docs/operators/variables.html) page.
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
#### Firewall configuration
@@ -537,20 +460,6 @@ ufw allow /tcp
#### WSS configuration
This section assumes that you have already configured a reverse proxy and have set it up to work over https. If not, head over to [the reverse proxy section](#reverse-proxy) to configure it.
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-
-1. Create a new Nginx configuration file called `/etc/nginx/sites-available/wss-config-nym` and paste the block below. Don't forget to insert your correct values.
-
-~~~admonish example collapsible=true title="Site configuration `/etc/nginx/sites-available/wss-config-nym`"
-```bash
-#####################################################
-# EXCHANGE ALL & VARIABLES ! #
-####################################################
-
-server {
- listen ssl http2;
- listen [::]: ssl http2;
-=======
@@ -570,7 +479,6 @@ nano /etc/nginx/sites-available/wss-config-nym
server {
listen ssl http2;
listen [::]: ssl http2;
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
server_name ;
@@ -607,13 +515,9 @@ server {
}
```
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-4. Activate the configuration by creating a symlink to `/etc/nginx/sites-enabled`:
-=======
###### 2. Activate and test Nginx WSS configuration
- Create a symlink to `/etc/nginx/sites-enabled`:
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```sh
ln -s /etc/nginx/sites-available/wss-config-nym /etc/nginx/sites-enabled
```
@@ -626,33 +530,6 @@ nginx -t
###### 3. Restart `nginx`
```sh
systemctl restart nginx
-<<<<<<< HEAD:documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.md
-
-```
-
-7. Finally, configure your `nym-node` to announce the port and hostname you have setup.
-
-This is done by opening your node configuration file located at `~/.nym/nym-nodes//config/config.toml` and changing the following values :
-
-- `announce_wss_port` in the `[entry_gateway]` section:
-
-```
-announce_wss_port =
-
-# example
-# announce_wss_port = 9001
-```
-
-- `hostname` in the `[host]` section:
-
-```
-hostname = ''
-```
-
-8. Restart your `nym-node` :
-```sh
-systemctl restart nym-node
-=======
```
###### 4. Finally, configure your `nym-node` to announce the port and hostname of your WSS and restart the node
@@ -674,7 +551,6 @@ hostname = ''
# example
# hostname = 'exit-gateway1.squad.nsl'
->>>>>>> 937be101d ([DOCs]: Operators rework to next.js (#4930)):documentation/docs/pages/operators/nodes/nym-node/configuration/proxy-configuration.mdx
```
- Restart your `nym-node`
@@ -700,3 +576,4 @@ wscat -c wss://:
```
- Check Swagger API of your node using the hostname: `https:///api/v1/swagger/#/`
+