Revert "Added installation instructions for public hosting to readme"

This commit is contained in:
Nariman Jelveh 2024-11-21 16:02:27 -08:00 committed by GitHub
parent 3f34301fc5
commit 971aa4cd0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 45 deletions

View File

@ -99,45 +99,6 @@ For detailed guides on self-hosting Puter, including configuration options and b
<br/>
### 🌎 Installation on public server
Subdomain is puter. Replace "domain.com" with your domain name.
#### -Create DNS entries for puter.domain.com and api.puter.domain.com, both pointing to the same IP.
#### -Create apache domain configs for puter.domain.com and api.puter.domain.com and add reverse proxy entries for both subdomains
```$ a2enmod proxy```
```$ a2enmod proxy_http```
##### /etc/apache/sites-enabled/--configfile---
```
ProxyPass / http://localhost:4100/
ProxyPassReverse / http://localhost:4100/
```
#### -Edit ./src/backend/src/config.js
Add after ```let config = {};```
```
config.api_base_url = 'https://api.puter.domain.com';
config.origin='https://puter.domain.com';
config.http_port=443;´
config.pub_port=443;
config.protocol='https';
```
#### -Edit ./node_modules/@heyputer/backend/src/services/WebServerService.js and ./src/backend/src/services/WebServerService.js
Search for
```if (allowedDomains.some(allowedDomain => hostName ===```
and change the line to
```if (allowedDomains.some(allowedDomain => hostName === "puter.domain.com" || hostName.endsWith('.' + allowedDomain))) {```
#### -Edit ./volatile/config/config.json
Change ```"domain": "puter.localhost"``` to ```"domain": "puter.domain.com"```
#### -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' ```
<br>
<br>
### ☁️ Puter.com
Puter is available as a hosted service at [**puter.com**](https://puter.com).

View File

@ -66,10 +66,6 @@ module.exports = eggspress(['/signup'], {
body: req.body,
});
if( config.registration_closed == true ) {
return res.status(403).send('Registration is closed.');
}
// check bot trap, if `p102xyzname` is anything but an empty string it means
// that a bot has filled the form
// doesn't apply to temp users