Installation of exchanger-web / DONE
Prepare dependencies
apt install -y nano sudo curl wget
apt update
apt upgrade -y1. Install Docker and Docker Compose
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh2. Create runner user and add it to sudoers
sudo adduser --disabled-password --gecos "" runner
sudo usermod -aG sudo runner3. Create docker group and add user to it
sudo usermod -aG docker runner4. Switch to a 'runner' user
sudo su runnernewgrp docker5. Create docker network
docker network create --subnet 10.1.0.0/24 exchanger-net6. Docker login
Create a Personal Access Token in GitLab
Make sure to tick the
read_registrypermission scopeCreate a reminder to update the PAT after expiration date, as once it expires you lose access for updates. https://git.boxexchanger.net/-/profile/personal_access_tokens
Login to docker read_registry
docker login rg.boxexchanger.net # Username: your_gitlab_username # Password: your_gitlab_pat
7. Create required folders
8. Place basic nginx config server_names_hash_bucket_size.conf
with content:
9. Place basic nginx config nginx_default.conf
with content:
10. Place Nginx nginx_admin.conf config
11. Place Nginx nginx_web.conf config
12. Create your docker-compose.yml
Below example of docker compose file where you must change $VCS_NAMESPACE to your git group path for example bx4/project-name
default branch :box :master if you have your own changes in your own branch please change :box to your container build tag
13. Start WEB server
Server Side Render: \
Attention! This mod is not recommended for use; it creates a load on the server to build the project for each client, which greatly increases the delay in loading the site
To enable SSR mode add variable SSR = 1 in your account https://licence.boxexchanger.net/licenses/ then run pipeline for build project and fetch build on your server.
1. Preparing the environment
After installing the server, you need to connect to it via SSH and configure the environment
Install server packages (nano git curl)
Install Nginx:
Install NodeJS:
Installing NodeJs / DONE2. Download the software to the server
Create an SSH key
Documentation from github.com Creating a new SSH key
Linux tutorial
> Enter x3
Get your key:
Copy the result and install this key in your git.boxexchanger.net account
Access to source code / DONECloning repositories
3. Building the admin panel
Configure the configuration:
Building the project:
4. Building a web panel
Configure the configuration: (if you encounter difficulties, please contact technical support [email protected])
Building the project:
5. Apply Nginx configuration
Testing the nginx configuration:
Applying the changes:
Last updated