Skip to content

Instantly share code, notes, and snippets.

View penzoiders's full-sized avatar

Lorenzo Faleschini penzoiders

View GitHub Profile
@penzoiders
penzoiders / onlyoffice_documentserver_centos7.sh
Last active January 1, 2021 14:13
Install OnlyOffice Document Server on clean CentOS 7 base without asking anything + oneliner to get SSL cert from Let's Encrypt
#!/bin/bash
# Install OnlyOffice Document Server on clean CentOS 7 base (may not work on non fresh systems) without asking anything
# HOW TO: just open a root terminal and brutally copy/paste this gist to your shell.
# SSL READY: featuring also a lazy-boy-style oneliner to get SSL cert from Let's Encrypt ( see bottom of this gist )
curl -sL https://rpm.nodesource.com/setup_8.x | bash -
cat << EOF > /etc/yum.repos.d/nginx.repo
[nginx]
@penzoiders
penzoiders / turnserver.conf
Last active June 8, 2018 11:00
TURN server (coturn) configuration template for Nextcloud VM with Let's Encrypt
# this will make your Talk WebRTC videocalls work well across NAT firewalls
# tested on Nextcloud VM 13.0.3 with Let's Encrypt certificate already in place
# install coturn (apt-get install coturn)
# set TURNSERVER_ENABLED=1 in /etc/default/coturn
# edit this file /etc/turnserver.conf using this template (change "your.nextcloud.fqdn" string to your actual domain)
# then start coturn (systemctl start coturn)
# define in https://your.nextcloud.fqdn/settings/admin/talk:
# Server STUN = your.nextcloud.fqdn:587 (port used in this example = 587, you can set it to another, but this is generally open outbound on most networks)
# Server TURN = your.nextcloud.fqdn:587
# TURN Shared Secret = your_ultra_freaking_strong_secret

Keybase proof

I hereby claim:

  • I am penzoiders on github.
  • I am penzoiders (https://keybase.io/penzoiders) on keybase.
  • I have a public key whose fingerprint is 398B 1BE3 4B39 1129 BFDB F3A2 8F77 1A95 FB72 8162

To claim this, I am signing this object: