User:Nicolaus: Difference between revisions

From Alpine Linux
No edit summary
Line 1: Line 1:
== How to run a ZNC server + NGINX using a reverse proxy pointing to subdomain ==
== 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:
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}}
{{Cmd|'''apk add znc nginx certbot-nginx'''}}


Add a user called 'irc' to the system:
Add a user called 'irc' to the system:
Line 32: Line 32:
{{Cmd|znc}}
{{Cmd|znc}}


Now change to root account:
Now change to '''root''':
{{Cmd|su root}}
{{Cmd|'''su root'''}}


go to
go to

Revision as of 19:03, 8 August 2019

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:

apk add znc nginx certbot-nginx

Add a user called 'irc' to the system:

adduser -D irc

Now log in as the new user "irc":

su irc

Create a ZNC configuration with this command:

znc --makeconf

You'll enter the following info:

Listen on port: 5000
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
Set up a network?: no
Launch ZNC now? no

You're still logged into the user 'irc'. Now run ZNC:

znc

Now change to root:

su root

go to Template:Vim /home/irc/.znc/configs/znc.conf


.... work in progress!!! come back tomorrow