You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10
Original file line number
Diff line number
Diff line change
@@ -105,3 +105,13 @@ Each JSON configuration file for the gateways can specify detailed settings for
105
105
]
106
106
}
107
107
```
108
+
109
+
## Authentication
110
+
Basic authentication can be enabled using the `--basic-auth` flag. The username and password should be set through environment variables `GATEWAY_USERNAME` and `GATEWAY_PASSWORD`, respectively.
111
+
112
+
### Running the Application
113
+
To run the application with authentication:
114
+
115
+
```
116
+
DEBUG=true GATEWAY_USERNAME=myuser GATEWAY_PASSWORD=mypass go run . --config config.json --basic-auth
0 commit comments