Hostname Configuration
Hostname Configuration with set_hostname Script¶
The set_hostname script is a utility provided with the application to help configure the necessary hostname parameters. This script ensures that the correct browser URL is set up for the application, including:
- Frontend Configuration: Ensures the browser can access the application.
- Backend Configuration: Allows proper routing of requests to the backend services.
- CORS (Cross-Origin Resource Sharing): Configures the application to handle requests from different origins securely.
Setting the hostname correctly is essential for users to access the application through their web browsers and for the application to handle requests and responses efficiently.
Purpose of the set_hostname Script¶
The set_hostname script specifically configures the browser URL for the application. This includes:
- Setting the protocol (e.g., HTTP or HTTPS).
- Setting the domain name or IP address.
The setup uses HTTP by default. If you are installing HTTPS directly, please refer to the HTTPS Configuration page after setting the hostname.
How to Use the set_hostname Script¶
Required Variable¶
When running the script, you will need the following variable:
- Hostname: This can be an IP address (e.g.,
192.168.1.100) or a DNS name (e.g.,example.com).
Steps to Run the Script¶
1. Run the Script: Use the following commands based on your operating system to execute the set_hostname script:
./config.sh set_hostname
./config.ps1 set_hostname
2. Provide the Hostname: When prompted, enter the hostname (IP or DNS) for the application.
3. Verify Configuration: After running the script, ensure that the hostname is correctly configured in the application's settings.