Skip to content

Commit ac9dc3a

Browse files
committed
Merge branch 'master' of github.com:nettica-com/nettica-admin
2 parents f5b3662 + 5841fbc commit ac9dc3a

File tree

1 file changed

+48
-6
lines changed

1 file changed

+48
-6
lines changed

README.md

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A control plane for [WireGuard](https://wireguard.com).
1313
* nginx
1414
* NodeJS / Vue 2
1515

16-
![Screenshot](nettica-architecture.webp)
16+
![Screenshot](https://nettica.com/wp-content/uploads/2025/01/nettica-architecture.webp)
1717

1818
## Features
1919

@@ -35,10 +35,39 @@ A control plane for [WireGuard](https://wireguard.com).
3535

3636
## Running
3737

38+
### Install dependencies
3839

39-
### Directly
40+
Install MongoDB (Ubuntu 22.04 instructions):
4041

41-
Install dependencies
42+
```
43+
sudo apt-get update
44+
sudo apt-get install gnupg curl
45+
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
46+
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
47+
--dearmor
48+
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
49+
sudo apt-get update
50+
sudo apt-get install -y mongodb-org
51+
52+
sudo systemctl daemon-reload
53+
sudo systemctl start mongod
54+
sudo systemctl enable mongod
55+
56+
```
57+
58+
59+
[Download and Install Golang](https://go.dev/dl/)
60+
61+
Install nginx:
62+
```
63+
sudo apt install nginx
64+
sudo apt install certbot
65+
sudo apt install python3-certbot-nginx
66+
67+
sudo apt enable nginx
68+
sudo apt start nginx
69+
70+
```
4271

4372
Sample NGINX Config:
4473

@@ -135,7 +164,13 @@ MONGODB_CONNECTION_STRING=mongodb://127.0.0.1:27017
135164
136165
# valid settings: oauth2oidc, google, microsoft2, basic, fake
137166
138-
# Basic auth requires no other parameters but OAUTH_PROVIDER_NAME
167+
# Basic auth is a first class citizen compatible with all the apps. Login with the shadow file defined username/pass.
168+
# If the SERVER variable above is set to, for example, nettica.example.com, it will log you in as user@example.com,
169+
# removing the first label. During login if you add a domain, such as user@example2.com, it will remove that
170+
# domain to validate the user, but preserve it for user creation, allowing for easy testing and evaluation of the product.
171+
172+
# Basic auth requires these two variables set:
173+
OAUTH2_AGENT_REDIRECT_URL=com.nettica.agent://callback/agent
139174
OAUTH2_PROVIDER_NAME=basic
140175
141176
```
@@ -187,20 +222,27 @@ sudo systemctl start nettica-api
187222

188223
Install NodeJS using NVM
189224
```
190-
nvm use lts-latest
225+
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
226+
nvm use 18
191227
```
192228

193229
Build the frontend
194230

195231
```
196-
cd ui
232+
cd /usr/share/nettica-admin/ui
197233
npm install
198234
npm run build
199235
```
200236

201237
With the given nginx config, you should now be able to use your website. Don't forget
202238
to get a cert using certbot
203239

240+
Run Certbot
241+
```
242+
sudo certbot
243+
```
244+
245+
204246
## Need Help
205247

206248
mailto:support@nettica.com

0 commit comments

Comments
 (0)