Docker Self-host Collabora Online server
Pull Docker Image
Start a new container
Nginx Reverse proxy
Pull Docker Image
Start a new container
Nginx Reverse proxy
Install acme.sh
Issue Domain & Install Certificate
Change Nginx Configuration
Requirements
Nignx Separate Data Streams
Xray Configuration
Install Dependencies Download Nginx And Extension Source Code Extension Dependencies Generate Nginx Build Configuration With OpenSSL/LibreSSL Build & Install Nginx Configure Nginx
Install jemalloc From APT
Nginx 需要编译时加入–with-ld-opt=-ljemalloc
MySQL 需要根据启动方式的不同,修改 systemd 文件 / init.d文件
Build from souce 以使用最新的版本
安装luajit2 拉取lua-nginx-module, lua-resty-core, lua-resty-lrucache 声明 LuaJIT 位置 Nginx编译参数 修改Nginx配置文件http{}以启用
Xray <—unix socket—> Nginx当xray前置并使用unix socket连接Nginx时会出现错误:(使用TCP则不会) 内部服务器错误 技术细节:远程地址unix: nextcloud使用unix socket 要在server{ }里加入: real_ip_header proxy_protocol;set_real_ip_from unix:; 看起来是这样的: 注意:启用proxy_protocol后,要在xray里设置 “xver”: 1并在”tlsSettings”中设置 “acceptProxyProtocol”: true, [20.04] error with nginx listening unix domain socket #25118
使用模块准备 openssl-3.0.1cd /www/modwget https://www.openssl.org/source/openssl-3.0.5.tar.gztar xf openssl-3.0.5.tar.gz pcre-8.45cd /www/modwget https://iweb.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gztar xf pcre-8.45.tar.gz zlib-cfcd /www/modgit clone https://github.com/cloudflare/zlib.git zlib-cf ; cd zlib-cfmake -f Makefile.in distclean ngx_brotlicd /www/modgit clone –recurse-submodules https://github.com/google/ngx_brotli.git ngx_http_rediswget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gztar xf ngx_http_redis-0.3.9.tar.gz lua-nginx-module redis2-nginx-modulecd /www/modgit clone https://github.com/openresty/redis2-nginx-module.git srcache-nginx-modulecd /www/modgit clone https://github.com/openresty/srcache-nginx-module.git set-misc-nginx-module cd /www/mod git clone https://github.com/openresty/set-misc-nginx-module.git headers-more-nginx-module echo-nginx-module ngx_devel_kitcd /www/modgit clone https://github.com/vision5/ngx_devel_kit.git Nginx Source Code … Read more