xmpp-invitation-page/README.md
2021-07-23 10:26:01 +02:00

34 lines
703 B
Markdown

# XMPP invitation page
Build a Web page to help people joining US on XMPP.
![Example of XMPP invitation page](screenshot_invitation_page.png)
## Quick deploy guide
Install `fcgiwrap`.
```
mkdir -p /var/www/xmpp-invitation
cd /var/www/xmpp-invitation
git clone https://forge.chapril.org/pitchum/xmpp-invitation-page.git .
```
Nginx snippet:
```
location /invitation-beta/assets/ {
alias /var/www/xmpp-invitation/assets/;
}
location /invitation-beta/ {
root /var/www/xmpp-invitation/;
index invitation.cgi;
fastcgi_pass unix:/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/xmpp-invitation/invitation.cgi;
}
```