Page tree
Skip to end of metadata
Go to start of metadata

Summary: How to change the port on which the front end service runs (CAST Imaging System - imaging-fe Windows Service or nginx Docker container).

Introduction

See also Reconfiguring internal services to run on a custom port if you wish to reconfigure any of the internal services to run on another custom port.

CAST Imaging front end runs by default on port 80 in ≤ 2.0.0-beta5 or port 8083 (or the first free port available after 8083) in ≥ 2.0.0-beta6. If this port is already used by another pre-existing service you can reconfigure the service to use an alternative (for example 8080).

Microsoft Windows via traditional installer

Edit the following file:

%APPDATA%\CAST\ImagingSystem\nginx\nginx.conf

Note that the file is located in the protected %APPDATAM location, therefore you must open the file with elevated permission (this is usually achieved by right clicking your text editor in the Windows start menu and selecting Run as administrator):

Locate the following lines:

# Running port
listen 8083;

Change line to the required port number, for example:

# Running port
listen 8080;

Save the file and ensure that you restart the CAST Imaging System - imaging-fe Windows service.

Docker for Windows/Linux

Edit the following file:

Docker Installer extension (located in the folder created when unzipping the extension):
.env

Locate the following lines:

SERVER_PORT=9000
ETL_PORT=9001
LOGIN_PORT=8084
SOURCECODE_PORT=9980
HTTP_PORT=8083
HTTPS_PORT=443

Change line HTTP_PORT to the required port number, for example 8082. This changes the access port to 8082:

SERVER_PORT=9000
ETL_PORT=9001
LOGIN_PORT=8084
SOURCECODE_PORT=9980
HTTP_PORT=8082
HTTPS_PORT=443

Save the file and ensure that you stop and then start CAST Imaging using the following commands (issuing a restart will not cause the port number change to be taken into account):

---Stop CAST Imaging:

Docker Installer extension (ensure you run the commands from the folder created when unzipping the extension):
Linux: ./imaging -s stop
Microsoft Windows: imaging.exe -s stop

---Start CAST Imaging:

Docker Installer extension (ensure you run the commands from the folder created when unzipping the extension):
Linux: ./imaging -s start
Microsoft Windows: imaging.exe -s start
  • No labels