I installed flarum on a VM and everything works fine if I visit it from my private network 192.168.1.x/24.
The VM's IPv4 is 192.168.1.8, then I setup public IP address mapping to 192.168.1.8 and DNS etc., then try to visit it from internet, things start to break, after spend some time to debug, I found that the respond page from flarum contain the server's private IPv4 address(192.168.1.8), then it cause my browser timeout because it can't reach 192.168.1.8. I guess something wrong when flarum generate the response, whether it's my nginx cfg or the code ?
here is the response to my browser visit the host from internat:
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>TIpark Silicon Valley</title>
<meta name="description" content="This is a online forum for related parties at Silicon Valley office.">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
<meta name="theme-color" content="#932092">
<meta name="robots" content="noindex" />
<link rel="stylesheet" href="http://192.168.1.8/assets/forum-8c2ba299.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,600">
</head>
any hint on how to fix this would be really appreciate!