使用者工具

網站工具


wiki設定筆記

系統:

安裝 dokuwiki
安裝 mail server

安裝 web station

下載 dokuwiki 並解壓縮,依照指示安裝

接下來是安全性設定,參考下面網址

https://www.dokuwiki.org/security#web_access_security

中「Deny Directory Access in Nginx」這段。參考本文件下面的「nginx設定」

dokuwiki 安裝套件:

  • Add New Page
  • ckgedit
  • color syntax plugin
  • discussion plugin
  • edittable plugin
  • folded plugin
  • Move plugin
  • newpagetemplate Plugin
  • PageQuery Plugin
  • saveandedit plugin
  • smtp plugin
  • Video Sharing Site Plugin
  • iframe plugin

WebStation設定:

php 安裝 openssl

MailServer設定:

DNS設定:

https://github.com/namukcom/SynologyCloudFlareDDNS
可能每次開機都需要設定一次

nginx設定:

/etc/nginx/nginx.conf 用到
app.d → /var/tmp/nginx/app.d
conf.d → /usr/local/etc/nginx/conf.d
sites-enabled → /usr/local/etc/nginx/sites-enabled
進入 app.d 可以看到 server.webstation-vhost.conf 內的虛擬主機設定
裡面引用到 conf.d 下面的目錄。目錄裡面要加上設定檔(user.conf.dokuwiki),內容如下:

location ~ /(data|conf|bin|inc|vendor)/ {
    deny all;
}

另外 /etc/nginx/nginx.conf 內可看到 /.well-known/acme-challenge 的根目錄被連結到 /var/lib/letsencrypt 下,
請在 /var/lib/letsencrypt 目錄下建立 ln .well-known → /volume1/web/.well-known/

編輯完畢用 sudo nginx -t 測試,sudo nginx -s reload 重新載入。

您可在登入後發表意見。
wiki設定筆記.txt · 上一次變更: 2021/07/11 01:30 由 neko