Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable binding IP address and port in webuicfg.yaml #56

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Configurable binding IP address and port in webuicfg.yaml #56

merged 1 commit into from
Sep 12, 2023

Conversation

s5uishida
Copy link
Contributor

The binding IP address and port for WebUI can be set as follows.

According to config.go, scheme parameter in webuicfg.yaml is a required attribute, so this parameter is not used in webui_init.go, but set it to http for the time being.

For example of webuicfg.yaml

@@ -3,6 +3,10 @@
   description: WebUI initial local configuration
 
 configuration:
+  webServer:
+    scheme: http
+    ipv4Address: 192.168.0.141
+    port: 5001
   mongodb: # the mongodb connected by this webui
     name: free5gc # name of the mongodb
     url: mongodb://localhost:27017 # a valid URL of the mongodb

In this case, starting the WebUI will output the log as follows.

...
2023-08-12T19:50:01.692442110+09:00 [INFO][WEBUI][Init] Create tenant: admin
2023-08-12T19:50:01.693665041+09:00 [INFO][WEBUI][Init] Create user: admin
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 192.168.0.141:5001

@ianchen0119
Copy link
Contributor

Hi @brianchennn

please help to review this PR.

@tim-ywliu tim-ywliu merged commit cf2a8a7 into free5gc:main Sep 12, 2023
@s5uishida s5uishida deleted the PR_configure_ip_port_in_webui branch September 23, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants