diff --git a/Server/conf/server.conf b/Server/conf/server.conf index a5b91be..6df616b 100644 --- a/Server/conf/server.conf +++ b/Server/conf/server.conf @@ -25,8 +25,6 @@ location ^~ /api/v1/search/ { } location ^~ /api/v1/auth { - # 应用限流规则,使用名称为 one 的限流区域,允许突发请求数为 5,不延迟处理 - limit_req zone=one burst=5 nodelay; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; @@ -85,10 +83,6 @@ location /freedom { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } -location = /search/website_collections { - content_by_lua_file lua/request_website_collections.lua; -} - location ~ /notify.*$ { proxy_pass http://local; } diff --git a/Server/lua/request_website_collections.lua b/Server/lua/request_website_collections.lua deleted file mode 100755 index 2983388..0000000 --- a/Server/lua/request_website_collections.lua +++ /dev/null @@ -1,6 +0,0 @@ -local cjson = require "cjson" -require "lua/website_collections" - -ngx.log(ngx.ERR, "fsfsferror") -ngx.say(cjson.encode(website_collections)); - diff --git a/Server/lua/website_collections.lua b/Server/lua/website_collections.lua deleted file mode 100755 index 25033cc..0000000 --- a/Server/lua/website_collections.lua +++ /dev/null @@ -1,118 +0,0 @@ -website_collections = { - { - title = "参考手册", - websites = { - { - name = "GCC手册", - url = "https://gcc.gnu.org/onlinedocs/gcc", - newWindow = true - }, - { - name = "POSIX API", - url = "https://pubs.opengroup.org/onlinepubs/9699919799.2018edition", - newWindow = true - }, - { - name = "Boost Libraries", - url = "https://www.boost.org", - newWindow = true - }, - { - name = "Material UI", - url = "https://material-ui.com", - newWindow = true - }, - { - name = "C++参考手册", - url = "https://zh.cppreference.com", - newWindow = true - }, - { - name = "Qt Blog", - url = "https://www.qt.io/blog", - newWindow = true - }, - { - name = "Lua手册", - url = "https://www.lua.org/manual/5.4/manual.html", - newWindow = true - }, - { - name = "x86 AT&T汇编", - favicon = "https://hackr.io/tutorials/assembly-language/logo-assembly-language.svg", - url = "https://flint.cs.yale.edu/cs421/papers/x86-asm/asm.html", - newWindow = true - }, - { - name = "Using as", - url = "https://sourceware.org/binutils/docs/as/", - newWindow = true - }, - { - name = "x86指令集参考", - favicon = "https://c9x.me/x86/icon/siyobik.ico", - url = "https://c9x.me/x86/", - newWindow = true - } - } - }, - { - title = "工作学习", - websites = { - { - name = "Gitee", - url = "https://gitee.com", - newWindow = true - }, - { - name = "LeetCode", - url = "https://leetcode-cn.com/problemset/all/?page=1&sort=DESCENDING&order=AC_RATE", - newWindow = true - }, - { - name = "Google翻译", - favicon = "GTranslateIcon", - url = "https://translate.google.cn", - newWindow = true - }, - { - name = "极客时间", - favicon = "http://static001.geekbang.org/static/time/icon/apple-touch-icon.jpg", - url = "https://time.geekbang.org", - newWindow = true - } - } - }, - { - title = "娱乐", - websites = { - { - name = "哔哩哔哩", - url = "https://www.bilibili.com/", - newWindow = true - }, - { - name = "动漫花园", - url = "http://share.dmhy.org", - newWindow = true - }, - { - name = "片源网", - favicon = "MovieIcon", - url = "https://pianyuan.org", - newWindow = true - }, - { - name = "射手网", - url = "https://assrt.net", - newWindow = true - }, - { - name = "知轩藏书", - url = "http://zxcs.me/", - favicon = "http://zxcs.me/favicon.ico", - newWindow = true - } - } - } -} diff --git a/WebApplication/BulmaTheme.cpp b/WebApplication/BulmaTheme.cpp index 77924db..3210d51 100644 --- a/WebApplication/BulmaTheme.cpp +++ b/WebApplication/BulmaTheme.cpp @@ -123,7 +123,7 @@ void BulmaTheme::apply(Wt::WWidget *widget, Wt::DomElement &element, int element break; } default: - LOG(warning) << "elemnet[" << element.type() << "] need style."; + // LOG(warning) << "elemnet[" << element.type() << "] need style."; break; } }