|
|
(2 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| == How to run a ZNC server + NGINX using a reverse proxy pointing to subdomain ==
| |
|
| |
|
| Run only this command as '''root'''. It will install ZNC, the NGINX web server and the Certbot for web SSL encryption:
| |
| {{Cmd|'''apk add znc nginx certbot-nginx'''}}
| |
|
| |
| Add a user called 'irc' to the system:
| |
| {{Cmd|adduser -D irc}}
| |
|
| |
| Now log in as the new user "irc":
| |
| {{Cmd|su irc}}
| |
|
| |
| Create a ZNC configuration with this command:
| |
| {{Cmd|znc --makeconf}}
| |
|
| |
| The program will start asking for the following information, most important questions are 'port' and 'localhost':
| |
| <pre>
| |
| Listen on port: 5000 ''(you should maintain this as 5000, do not put anything else)''
| |
| Listen using SSL: yes
| |
| Listen using both IPv4 and IPv6: yes
| |
| Username: username
| |
| Enter password: password
| |
| Confirm password: password
| |
| Nick: nick
| |
| Alternate nick: alternate_nick
| |
| Real name: optional
| |
| Bind host: localhost ''(you should maintain this as localhost, do not put anything else)''
| |
| Set up a network?: no
| |
| Launch ZNC now? no
| |
| </pre>
| |
|
| |
| You're still logged into the user 'irc'. Now run ZNC:
| |
| {{Cmd|znc}}
| |
|
| |
| Now change to '''root''':
| |
| {{Cmd|'''su root'''}}
| |
|
| |
| go to
| |
| {{vim /home/irc/.znc/configs/znc.conf}}
| |
|
| |
|
| |
| .... work in progress!!! come back tomorrow
| |