clearml-server/webserver/README.md

25 lines
859 B
Markdown
Raw Normal View History

# Webserver (NGINX)
## Introduction
2021-01-14 10:37:25 +00:00
The webserver is the **clearml-server**'s component responsible for serving the Trains webapp.
For this purpose, we use an [NGINX](https://www.nginx.com/) server.
## Configuration
2021-01-14 10:37:25 +00:00
In order to serve the ClearML webapp, the following is required:
* The pre-built ClearML webapp should be copied to the NGINX html directory (usually `/usr/share/nginx/html`)
* The default NGINX port (usually `80`) should be changed to match the **clearml-server** configuration (usually `8080`)
NOTE: This configuration may vary in different systems, depending on the NGINX version and distribution used.
#### Example: Centos 7
The following commands can be used to install and run NGINX in the Centos 7 OS:
```bash
yum install nginx
2021-01-14 10:37:25 +00:00
cp -R /path/to/clearml-webapp/build/* /var/www/html
systemctl enable nginx
systemctl start nginx
```