setup info on the readme
This commit is contained in:
parent
b7e5940962
commit
c5e7a2d895
11
README.md
11
README.md
@ -17,10 +17,19 @@ etc...
|
|||||||
# Newsletter
|
# Newsletter
|
||||||
<br/>
|
<br/>
|
||||||
If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js:<br/>
|
If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js:<br/>
|
||||||
```javascript
|
```
|
||||||
let members = ["member1@gmail.com","member2@outlook.com"]
|
let members = ["member1@gmail.com","member2@outlook.com"]
|
||||||
|
|
||||||
if (typeof module !== 'undefined' && module.exports) {
|
if (typeof module !== 'undefined' && module.exports) {
|
||||||
module.exports = members;
|
module.exports = members;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
# Setup
|
||||||
|
I use apache2 to run the website and accept traffic, though for the main site it runs on nodejs which is hosted on port :8003<br/>
|
||||||
|
You can run /node/app.js in a tmux session for the website<br/>
|
||||||
|
You can add this to /etc/apache2/sites-enables/000-default.conf to forward to nodejs:<br/>
|
||||||
|
`ProxyPass / http://locahost:8003/`<br/>
|
||||||
|
And this if you want other sites that use apache2 not nodejs (as exceptions)<br/>
|
||||||
|
`ProxyPass /wordpress !`<br/>
|
||||||
|
You can also check the node page is running with `curl http://localhost:8003`<br/>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user