From d334f3346dec2403169ec7c85c5693589de3dae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Fri, 19 Nov 2021 10:59:37 +0800 Subject: [PATCH] add doc --- music-room-test.conf | 47 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/music-room-test.conf b/music-room-test.conf index 7052f51..ca9bb33 100644 --- a/music-room-test.conf +++ b/music-room-test.conf @@ -1,5 +1,40 @@ +# MacOS: +# +# ➤ brew install openresty/brew/openresty +# +# EXEC: +# +# ➤ which openresty +# /usr/local/bin/openresty +# +# Config: +# +# ➤ ls /usr/local/etc/openresty +# fastcgi.conf nginx.conf +# fastcgi.conf.default nginx.conf.default +# fastcgi_params scgi_params +# fastcgi_params.default scgi_params.default +# koi-utf uwsgi_params +# koi-win uwsgi_params.default +# mime.types win-utf +# mime.types.default +# +# Main: +# +# ➤ ls /usr/local/opt/openresty +# COPYRIGHT +# INSTALL_RECEIPT.json +# README.markdown +# bin +# homebrew.mxcl.openresty.plist +# luajit +# lualib +# nginx +# pod +# resty.index +# site server { -# set $servername "music-room.alchemy-studio.cn"; + # set $servername "music-room.alchemy-studio.cn"; set $servername "localhost"; server_name $servername; # listen 443 ssl; @@ -9,9 +44,15 @@ server { # ssl_certificate /etc/letsencrypt/live/music-room.alchemy-studio.cn/fullchain.pem; # managed by Certbot # ssl_certificate_key /etc/letsencrypt/live/music-room.alchemy-studio.cn/privkey.pem; # managed by Certbot - set $tmp_file_dir "/file_upload/"; # 文件存储路径 + # https://fishshell.com/docs/current/language.html#variable-expansion + # ➤ mkdir -p /usr/local/file_upload + # ➤ sudo chown (whoami) /usr/local/file_upload + set $tmp_file_dir "/usr/local/file_upload"; # 文件存储路径 set $task_server "http://127.0.0.1:8080"; # task server host - set $resty_loc "/usr/local/openresty"; + + + #set $resty_loc "/usr/local/openresty"; + set $resty_loc "/usr/local/opt/openresty"; # MacOS location / { try_files $uri $uri/ /index.html;