-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from l7wei/main
feat: 增加圖書館失物招領, 電子報等功能
- Loading branch information
Showing
16 changed files
with
556 additions
and
289 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
[ | ||
{ | ||
"name": "藝術文化總中心電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-85-" | ||
}, | ||
{ | ||
"name": "域報 Field Cast", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-84-" | ||
}, | ||
{ | ||
"name": "校長同意權人投票事務委員會", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-80-" | ||
}, | ||
{ | ||
"name": "國立清華大學校長遴選委員會", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-71-" | ||
}, | ||
{ | ||
"name": "清華校友總會會務訊息", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-69-" | ||
}, | ||
{ | ||
"name": "築思脈動(Pulse of Education)", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-68-" | ||
}, | ||
{ | ||
"name": "心諮系雙週例講座", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-67-" | ||
}, | ||
{ | ||
"name": "愛慾電子報報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-61-" | ||
}, | ||
{ | ||
"name": "教學發展中心電子報-教師", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-56-" | ||
}, | ||
{ | ||
"name": "清華校友電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-8-" | ||
}, | ||
{ | ||
"name": "清華大學化學系電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-48-" | ||
}, | ||
{ | ||
"name": "國立清華大學核工暨工科系友會電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-46-" | ||
}, | ||
{ | ||
"name": "國立清華大學動機系系友電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-47-" | ||
}, | ||
{ | ||
"name": "清華大學化工系友電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-45-" | ||
}, | ||
{ | ||
"name": "國立清華大學學生會電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-44-" | ||
}, | ||
{ | ||
"name": "台灣語言學通訊", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-43-" | ||
}, | ||
{ | ||
"name": "教務處綜合教務組電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-52-" | ||
}, | ||
{ | ||
"name": "課務電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-40-" | ||
}, | ||
{ | ||
"name": "清華大學工工系電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-39-" | ||
}, | ||
{ | ||
"name": "語文中心電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-38-" | ||
}, | ||
{ | ||
"name": "eecs-students", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-36-eecs-students" | ||
}, | ||
{ | ||
"name": "科管院職涯電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-35-" | ||
}, | ||
{ | ||
"name": "人事室電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-34-" | ||
}, | ||
{ | ||
"name": "研發處電子報-教職", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-33-" | ||
}, | ||
{ | ||
"name": "學生事務報-學生", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-28-" | ||
}, | ||
{ | ||
"name": "數學系電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-27-" | ||
}, | ||
{ | ||
"name": "電機工程學系電子報(學生)", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-25-" | ||
}, | ||
{ | ||
"name": "秘書處-全校教職員", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-57-" | ||
}, | ||
{ | ||
"name": "住宿書院電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-20-" | ||
}, | ||
{ | ||
"name": "主計室電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-19-" | ||
}, | ||
{ | ||
"name": "國立清華大學圖書館-學生", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-18-" | ||
}, | ||
{ | ||
"name": "諮商中心-心窩報報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-16-" | ||
}, | ||
{ | ||
"name": "NTHU-Newsletter", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-15-nthu-newsletter" | ||
}, | ||
{ | ||
"name": "NTHU-Division of Health Service", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-14-nthu-division-of-health-service" | ||
}, | ||
{ | ||
"name": "人社院學士班電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-11-" | ||
}, | ||
{ | ||
"name": "人文社會學院電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-53-" | ||
}, | ||
{ | ||
"name": "新聞剪輯電子報", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-10-" | ||
}, | ||
{ | ||
"name": "清華簡訊", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-9-" | ||
}, | ||
{ | ||
"name": "計中-教育訓練", | ||
"link": "https://newsletter.cc.nthu.edu.tw/nthu-list/index.php/zh/home-zh-tw/listid-7-" | ||
} | ||
] |
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,32 +1,34 @@ | ||
import os | ||
import uvicorn | ||
from dotenv import load_dotenv | ||
from scripts.ssl.generate_ssl import generate_certificate | ||
|
||
load_dotenv() | ||
|
||
if __name__ == "__main__": | ||
ssl_path = "src/utils/openssl/" | ||
ssl_path = "scripts/ssl/" | ||
generate_certificate(path=ssl_path) | ||
ssl_keyfile = ssl_path + "key.pem" | ||
ssl_certfile = ssl_path + "cert.pem" | ||
if os.getenv("ENV") == "development": | ||
# Development | ||
# Run the server | ||
uvicorn.run( | ||
"src:app", | ||
app="src:app", | ||
host="0.0.0.0", | ||
port=int(os.getenv("PORT") or 5000), | ||
log_level="debug", | ||
reload=True, # reload the server every time code changes | ||
ssl_keyfile="src/utils/openssl/key.pem", | ||
ssl_certfile="src/utils/openssl/cert.pem", | ||
) | ||
else: | ||
# Production | ||
# Run the server | ||
uvicorn.run( | ||
"src:app", | ||
app="src:app", | ||
host="0.0.0.0", | ||
port=int(os.getenv("PORT") or 5000), | ||
log_level="error", | ||
workers=2, | ||
ssl_keyfile="src/utils/openssl/key.pem", | ||
ssl_certfile="src/utils/openssl/cert.pem", | ||
ssl_keyfile=ssl_keyfile, | ||
ssl_certfile=ssl_certfile, | ||
) |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.