This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* functions.php snippet for lightweight Google SSO | |
*/ | |
// 1. Start the session early. | |
add_action('init', 'my_sso_start_session', 1); | |
function my_sso_start_session() { | |
if (!session_id()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
ServerName cloud.domain.com | |
ServerAlias cloud.domain.com | |
DocumentRoot /mnt/drive/cloud.domain.com/www | |
<Directory /mnt/drive/cloud.domain.com/www> | |
Options Indexes FollowSymLinks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
ServerName docs.yourdomain.com | |
ServerAlias docs.yourdomain.com | |
SSLEngine On | |
SSLCertificateFile /etc/letsencrypt/live/yourdomain.com/cert.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/yourdomain.com/privkey.pem | |
SSLCertificateChainFile /etc/letsencrypt/live/yourdomain.com/chain.pem | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -i -t -d --name onlyoffice -p 8080:80 \ | |
-v /local/path/logs:/var/log/onlyoffice \ | |
-v /local/path/data:/var/www/onlyoffice/Data \ | |
-v /local/path/lib:/var/lib/onlyoffice \ | |
-v /local/path/db:/var/lib/postgresql \ | |
--restart always \ | |
onlyoffice/documentserver |