mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Update README.md
This commit is contained in:
parent
9c7dc53fc9
commit
56b73b385d
@ -107,8 +107,9 @@ ProxyPass / http://localhost:4100/
|
|||||||
ProxyPassReverse / http://localhost:4100/
|
ProxyPassReverse / http://localhost:4100/
|
||||||
```
|
```
|
||||||
#### -Edit ./src/backend/src/config.js
|
#### -Edit ./src/backend/src/config.js
|
||||||
add after let config = {};
|
Add after ```let config = {};```
|
||||||
```config.api_base_url = 'https://api.puter.domain.com';
|
```
|
||||||
|
config.api_base_url = 'https://api.puter.domain.com';
|
||||||
config.origin='https://puter.domain.com';
|
config.origin='https://puter.domain.com';
|
||||||
config.http_port=443;´
|
config.http_port=443;´
|
||||||
config.pub_port=443;
|
config.pub_port=443;
|
||||||
@ -116,13 +117,13 @@ config.protocol='https';
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### -Edit ./node_modules/@heyputer/backend/src/services/WebServerService.js and ./src/backend/src/services/WebServerService.js
|
#### -Edit ./node_modules/@heyputer/backend/src/services/WebServerService.js and ./src/backend/src/services/WebServerService.js
|
||||||
search for
|
Search for
|
||||||
```if (allowedDomains.some(allowedDomain => hostName ===```
|
```if (allowedDomains.some(allowedDomain => hostName ===```
|
||||||
and change the line to
|
and change the line to
|
||||||
```if (allowedDomains.some(allowedDomain => hostName === "puter.domain.com" || hostName.endsWith('.' + allowedDomain))) {```
|
```if (allowedDomains.some(allowedDomain => hostName === "puter.domain.com" || hostName.endsWith('.' + allowedDomain))) {```
|
||||||
|
|
||||||
#### -Edit ./volatile/config/config.json
|
#### -Edit ./volatile/config/config.json
|
||||||
change ```"domain": "puter.localost"``` to ```"domain": "puter.domain.com"```
|
Change ```"domain": "puter.localhost"``` to ```"domain": "puter.domain.com"```
|
||||||
|
|
||||||
#### -Run sed to replace the domain in all remaining files
|
#### -Run sed to replace the domain in all remaining files
|
||||||
``` grep -rl "puter.localhost:4100" . | xargs sed -i 's/puter.localhost:4001/puter.domain.com/g' ```
|
``` grep -rl "puter.localhost:4100" . | xargs sed -i 's/puter.localhost:4001/puter.domain.com/g' ```
|
||||||
|
Loading…
Reference in New Issue
Block a user