Create an application.conf for the Tiny Editors Services

Create a configuration file to define the settings for the Tiny Editors Services.

Procedure

  1. Using a text editor, create a new file named application.conf under the following directory:
    PathOperating System
    /opt/ephox/application.conf On Unix, Linux or AIX
    C:\opt\ephox\application.conf On Windows: where C is the boot drive for your system.
    Note: Use a plain text editor to avoid inserting invalid formatting or symbols into application.conf. Do not use a rich text editor such as Microsoft Word for editing configuration files.
  2. Add the ephox.allowed-origins.origins setting.
    Attention: The ephox.allowed-origins.origins setting is required. It must list all in-use names ( "protocol://host:port" ) for the server to allow the Tiny Editors to access the services without returning Cross-Origin Resource Sharing (CORS) errors.
    Figure 1. A basic application.conf for the server connections.example.com
    ephox {
      allowed-origins {
        origins = [
          "http://connections.example.com",
          "https://connections.example.com",
    
          "http://connections.example.com:9081",
          "https://connections.example.com:9444"
        ]
      }
    }
  3. Optional: Add application.conf settings required for Link-checking and Media-embed.
  4. Save the configuration to application.conf.
  5. If the services have been deployed, stop and restart TinyEditorsServices to apply the configuration changes.