Skip to content

Port in webone.conf cannot be an environment variable #156

@grasdk

Description

@grasdk

The default webone.conf can have DefaultHostname as a variable.

When I do the same for Port, it fails, both on release 0.17.3 on Windows 11 and the Docker Image

From Windows (same output from the Docker version):

>echo %WEBONEPORT%
8080

>webone
WebOne HTTP Proxy Server 0.17.3
https://github.com/atauenis/webone


Using configuration file webone.conf.
Using configuration file codepage.conf.
Using configuration file escargot.conf.
Error while loading configuration: Input string was not in a correct format.

Press any key to exit.

Snippet from webone.conf:

; DisplayStatusPage=Set status page display style (no, short, full) or file name
; ContentDirectory=Location of internal pages' HTML (CSS, JS, GIF, etc) files
Port=%WEBONEPORT%
DefaultHostName=%HostName%
;Authenticate=login:password
OutputEncoding=AsIs
;OutputEncoding=Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions