add doc
This commit is contained in:
+44
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user