forked from coaidev/coai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support copy/delete actions on gift code management
- Loading branch information
1 parent
d4015c3
commit 6d92ff7
Showing
12 changed files
with
158 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,38 @@ | ||
worker_processes 1; | ||
server | ||
{ | ||
# this is a sample configuration for nginx | ||
listen 80; | ||
|
||
events { | ||
worker_connections 8192; | ||
multi_accept on; | ||
use epoll; | ||
} | ||
|
||
http { | ||
server { | ||
listen 8000 default_server; | ||
listen [::]:8000 default_server; | ||
server_name _; | ||
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|package.json|package-lock.json|\.env) { | ||
return 404; | ||
} | ||
|
||
root /app/dist; | ||
index index.html; | ||
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) { | ||
return 403; | ||
} | ||
|
||
location /api/ { | ||
proxy_pass http://127.0.0.1:8094/; | ||
proxy_set_header Host 127.0.0.1:$server_port; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header REMOTE-HOST $remote_addr; | ||
proxy_set_header X-Host $host:$server_port; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_connect_timeout 30s; | ||
proxy_read_timeout 86400s; | ||
proxy_send_timeout 30s; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
location ~ /purge(/.*) { | ||
proxy_cache_purge cache_one 127.0.0.1$request_uri$is_args$args; | ||
} | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
try_files $uri $uri/ /index.html; | ||
error_page 404 =200 /index.html; | ||
} | ||
location / { | ||
# if you are using compile deployment mode, please use the http://localhost:8094 instead | ||
proxy_pass http://127.0.0.1:8000; | ||
proxy_set_header Host 127.0.0.1:$server_port; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header REMOTE-HOST $remote_addr; | ||
add_header X-Cache $upstream_cache_status; | ||
proxy_set_header X-Host $host:$server_port; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_connect_timeout 30s; | ||
proxy_read_timeout 86400s; | ||
proxy_send_timeout 30s; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
|
||
access_log /www/wwwlogs/chatnio.log; | ||
error_log /www/wwwlogs/chatnio.error.log; | ||
} |