Posted inDocker Linux Bitwarden 密碼管理 Opensource版 Vaultwarden Posted by Tim Ng 2024-12-19 vi dockercompose_vaultwarden.yml services: vaultwarden: image: vaultwarden/server:latest container_name: vaultwarden restart: always environment: #DOM...
Posted inDocker Linux Install mailcow in Docker Posted by Tim Ng 2024-12-19 git clone https://github.com/mailcow/mailcow-dockerized cd mailcow-dockerized ./generate_config.sh docker compose pull docker compose up -d https://${...
Posted inLinux netstat apache 連接數量分析 Posted by Tim Ng 2024-12-03 netstat -npt | grep apache2 | grep ESTA | awk -F "[ :]*" '{print $6}' | sort | uniq -c | sort -nr
Posted inDocker Linux mailcow calendar share cross-domain Posted by Tim Ng 2024-11-24 vi ./mailcow-dockerized/data/conf/sogo/sogo.conf SOGoDomainsVisibility = ( (domain3.tld, domain2.tld) );
Posted inWordpress WordPress內容preview長度 Posted by Tim Ng 2024-11-22 預設的長度太短, 增加預設的長度, 不知道theme update後會不會保留設定 外觀 -> 佈景主題檔案編輯器 -> 佈景主題檔案 -> functions.php /* wordpress-excerpt-length */ function my_excerpt_length($length...
Posted inHauwei Network Huawei Switch timeout Posted by Tim Ng 2024-11-22 某天有一個site的network出現問題, 需要reboot switch網絡才能正常運作, 但是reboot過後還是看到一些奇怪log在其中一個AP Port口, 相信問題未能真正解決, 最後還發現Mesh AP未能達到正常速度, 所以也都把Mesh的所有AP重啟一下, 從log上看到曾經出現C...
Posted inDocker Linux MySQL Docker custom WordPress and SFTP image Posted by Tim Ng 2024-11-19 粗體的部份是新增SFTP的 vi dockerfile_web_wp8225 FROM php:8.2.25-apache RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Hong_Kong /etc/local...
Posted inDocker Linux MySQL Docker custom WordPress image Posted by Tim Ng 2024-11-18 vi dockerfile_web_wp8225 FROM php:8.2.25-apache RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime RUN apt-g...
Posted inLinux tar zip包括hidden檔案 Posted by Tim Ng 2024-11-16 tar zcvf /root/html.tar.gz /var/www/html/* .[!.]*
Posted inDocker Linux Bind9 DDNS in Docker Posted by Tim Ng 2024-11-16 vi dockerfile_ddns FROM ubuntu:latest RUN apt-get update && apt-get install bind9 vim curl dnsutils cron -y && apt-get clean -y &&...