From 48240fc0e31c68ee88d77e7ef091481edbfcd65e Mon Sep 17 00:00:00 2001 From: lhy6305 <2734565242@qq.com> Date: Sat, 21 Sep 2024 22:07:17 +0800 Subject: [PATCH] ~~ssh~~ https auto update --- assets/user_index_template.html | 6 ++-- index.html | 2 +- nginx-attachment-server.conf | 56 +++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 nginx-attachment-server.conf diff --git a/assets/user_index_template.html b/assets/user_index_template.html index b227cac..a0af02d 100644 --- a/assets/user_index_template.html +++ b/assets/user_index_template.html @@ -33,8 +33,8 @@ a:hover {

以下是由本服务提供的题目列表
-
-
点击下载附件或进行交互,在新窗口打开
+

+
点击下载附件或进行交互(在新窗口打开)


#REPLACE-ANCHOR-2#
@@ -45,5 +45,5 @@ a:hover {
- + diff --git a/index.html b/index.html index 91b293d..30c0230 100644 --- a/index.html +++ b/index.html @@ -51,5 +51,5 @@
- + \ No newline at end of file diff --git a/nginx-attachment-server.conf b/nginx-attachment-server.conf new file mode 100644 index 0000000..19873d2 --- /dev/null +++ b/nginx-attachment-server.conf @@ -0,0 +1,56 @@ +#it's already in the http directive + +server { + listen 25000 ssl; + + root /root/attachment-server/attachment-server/; + + add_header Access-Control-Allow-Origin * always; + + charset utf-8; + + client_body_buffer_size 0; + client_max_body_size 0; + gzip off; + proxy_buffering off; + proxy_request_buffering off; + fastcgi_buffering off; + fastcgi_request_buffering off; + tcp_nopush off; + tcp_nodelay on; + + location = / { + allow all; + index index.html; + } + + location = /index.html { + allow all; + } + + location = /api.php { + allow all; + include fastcgi_params; + fastcgi_pass unix:/var/run/php8.2-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_read_timeout 1800s; + } + + location /assets/ { + allow all; + } + + location / { + deny all; + } + + error_page 405 =200 $uri; + + ssl_certificate /root/wp24-atdl.ly65.top_ecc/cert1.pem; + ssl_certificate_key /root/wp24-atdl.ly65.top_ecc/privkey1.pem; + + ssl_session_timeout 5m; + ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; + ssl_prefer_server_ciphers on; +}