From 37aeb45c974d254eb271d98eb0d09986d459dc3d Mon Sep 17 00:00:00 2001 From: zeaslity Date: Tue, 8 Aug 2023 17:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0nextcloud=E7=89=88=E6=9C=AC?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E5=9C=A8=E7=BA=BF=E6=96=87=E6=A1=A3office?= =?UTF-8?q?.107421.xyz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/dataSources.local.xml | 2 +- v2ray示例/v2ray-Socks5/socks5中继服务器.json | 2 +- 常用脚本/代理服务器一键.sh | 86 +++++ .../nextcloud-docker/collabra-office-conf.xml | 303 ++++++++++++++++++ .../nextcloud-docker/collabra-office-nginx.conf | 56 ++++ .../nextcloud-docker/docker-compose.yaml | 276 ++++++++-------- .../Seoul-arm64-02/nextcloud-docker/env.sample | 3 - .../Seoul-arm64-02/nextcloud-docker/init.sh | 16 - .../nextcloud-docker/nextcloud-nginx.conf | 81 +++++ .../Seoul-arm64-02/nextcloud-docker/nginx.conf | 141 -------- .../个人图书馆komga/个人图书馆证书申请.sh | 2 +- 11 files changed, 672 insertions(+), 296 deletions(-) create mode 100644 常用脚本/代理服务器一键.sh create mode 100644 部署应用/Seoul-arm64-02/nextcloud-docker/collabra-office-conf.xml create mode 100644 部署应用/Seoul-arm64-02/nextcloud-docker/collabra-office-nginx.conf delete mode 100644 部署应用/Seoul-arm64-02/nextcloud-docker/env.sample delete mode 100644 部署应用/Seoul-arm64-02/nextcloud-docker/init.sh create mode 100644 部署应用/Seoul-arm64-02/nextcloud-docker/nextcloud-nginx.conf delete mode 100644 部署应用/Seoul-arm64-02/nextcloud-docker/nginx.conf diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index e2fb171..bc152f7 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + #@ diff --git a/v2ray示例/v2ray-Socks5/socks5中继服务器.json b/v2ray示例/v2ray-Socks5/socks5中继服务器.json index 49c9a80..5d32223 100644 --- a/v2ray示例/v2ray-Socks5/socks5中继服务器.json +++ b/v2ray示例/v2ray-Socks5/socks5中继服务器.json @@ -18,7 +18,7 @@ }, { "protocol": "socks", - "port": 28889, + "port": 58889, "listen": "0.0.0.0", "settings": { "auth": "noauth", diff --git a/常用脚本/代理服务器一键.sh b/常用脚本/代理服务器一键.sh new file mode 100644 index 0000000..756be68 --- /dev/null +++ b/常用脚本/代理服务器一键.sh @@ -0,0 +1,86 @@ +#!/bin/bash + +# 更改主机名称 +# 需要收件执行linux-init +OSS_PATH_PREFIX=https://b2.107421.xyz +V2RAY_INSTALL_SCRIPT_PATH=$OSS_PATH_PREFIX/v2ray-install.sh +V2RAY_FILE_OSS_PATH=$OSS_PATH_PREFIX/v2ray-linux-64_v4.32.1.zip + + +install_v2ray() { + echo "开始下载需要的v2ray文件!" + wget $V2RAY_INSTALL_SCRIPT_PATH + wget $V2RAY_FILE_OSS_PATH + + echo "" + echo "开始执行V2ray的安装工作" + + echo "y + " | bash ./v2ray-install.sh --local v2ray-linux-64_v4.32.1.zip + + echo "v2ray安装成功!" + +} + +modify_sock5_v2ray_config() { + + echo "开始修改V2ray的配置,为socks5的形式!" + + cat >/usr/local/etc/v2ray/config.json < + + + + + + + + + false + + + en_US zh_CN + + + + + + + + + + + + + false + + + + + + + + + + + + true + + + 1 + + + 4 + 5 + false + 96 + 3600 + 30 + 300 + false + 0 + 8000 + 0 + 0 + 100 + 5 + 100 + 500 + 5000 + + 10000 + 60 + 300 + 3072 + 85 + 120 + + + + + true + 120 + 900 + + + + + + true + + warning + trace + notice + fatal + false + + -INFO-WARN + + + /var/log/coolwsd.log + never + timestamp + true + 10 days + 10 + true + false + + + false + 82589933 + + false + false + + + + + /var/log/coolwsd.trace.json + + + false + + + + + + + + false + + + + + + all + any + + + + 192\.168\.[0-9]{1,3}\.[0-9]{1,3} + ::ffff:192\.168\.[0-9]{1,3}\.[0-9]{1,3} + 127\.0\.0\.1 + ::ffff:127\.0\.0\.1 + ::1 + 172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3} + ::ffff:172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3} + 172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3} + ::ffff:172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3} + 172\.3[01]\.[0-9]{1,3}\.[0-9]{1,3} + ::ffff:172\.3[01]\.[0-9]{1,3}\.[0-9]{1,3} + 10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} + ::ffff:10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} + + + + + + + + + + + + false + + true + /etc/coolwsd/cert.pem + /etc/coolwsd/key.pem + /etc/coolwsd/ca-chain.cert.pem + + + 1000 + + + + + + + false + 31536000 + + + + + true + true + 1800 + false + 1 + false + + + + + + + + + + + + + + default + true + + + + + + 0 + + 900 + + + + + + https://office.107421.xyz + https://office.107421.xyz + + + + https://nc.107421.xyz + https://nc.107421.xyz + + + + + + + + true + + + + + + + + + true + + + true + false + zeaslity + lovemm.23 + + + + + + + + + + + + + + + https://nc.107421.xyz + + + + + + + + false + + + + log + + + + + + + + + + + + true + + + https://help.collaboraoffice.com/help.html? + + diff --git a/部署应用/Seoul-arm64-02/nextcloud-docker/collabra-office-nginx.conf b/部署应用/Seoul-arm64-02/nextcloud-docker/collabra-office-nginx.conf new file mode 100644 index 0000000..408db3b --- /dev/null +++ b/部署应用/Seoul-arm64-02/nextcloud-docker/collabra-office-nginx.conf @@ -0,0 +1,56 @@ +server { + listen 443 ssl; + server_name office.107421.xyz; + + + ssl_certificate /etc/nginx/conf.d/ssl_key/office.107421.xyz.cert.pem; + ssl_certificate_key /etc/nginx/conf.d/ssl_key/office.107421.xyz.key.pem; + + + # static files + location ^~ /browser { + proxy_pass http://127.0.0.1:9980; + proxy_set_header Host $http_host; + } + + + # WOPI discovery URL + location ^~ /hosting/discovery { + proxy_pass http://127.0.0.1:9980; + proxy_set_header Host $http_host; + } + + + # Capabilities + location ^~ /hosting/capabilities { + proxy_pass http://127.0.0.1:9980; + proxy_set_header Host $http_host; + } + + + # main websocket + location ~ ^/cool/(.*)/ws$ { + proxy_pass http://127.0.0.1:9980; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $http_host; + proxy_read_timeout 36000s; + } + + + # download, presentation and image upload + location ~ ^/(c|l)ool { + proxy_pass http://127.0.0.1:9980; + proxy_set_header Host $http_host; + } + + + # Admin Console websocket + location ^~ /cool/adminws { + proxy_pass http://127.0.0.1:9980; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $http_host; + proxy_read_timeout 36000s; + } +} \ No newline at end of file diff --git a/部署应用/Seoul-arm64-02/nextcloud-docker/docker-compose.yaml b/部署应用/Seoul-arm64-02/nextcloud-docker/docker-compose.yaml index bc6a17f..cd8a381 100644 --- a/部署应用/Seoul-arm64-02/nextcloud-docker/docker-compose.yaml +++ b/部署应用/Seoul-arm64-02/nextcloud-docker/docker-compose.yaml @@ -1,143 +1,153 @@ -version: "3.3" +version: '3' + services: - reverse-proxy: - image: traefik:v2.3 - command: - - --log.level=WARN - #- --api.insecure=true - - --providers.docker - - --entryPoints.web.address=:80 - - --entrypoints.web.http.redirections.entryPoint.to=websecure - - --entrypoints.web.http.redirections.entryPoint.scheme=https - - --entryPoints.websecure.address=:443 - - --certificatesresolvers.myresolver.acme.email=tom@tcweb.org - - --certificatesresolvers.myresolver.acme.storage=/acme.json - # used during the challenge - - --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web - ports: - - "80:80" - - "443:443" - # The Web UI (enabled by --api.insecure=true) - #- "8080:8080" - depends_on: - - nextcloud-front - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - ./acme.json:/acme.json - restart: unless-stopped - networks: - nextcloud: - aliases: - - traefik - nextcloud-front: - image: nginx:latest - depends_on: - - nextcloud-app - restart: unless-stopped - volumes: - - ./nextcloud-data/:/var/www/html:ro - - ./nginx.conf:/etc/nginx/conf.d/nextcloud.conf:ro - labels: - - "traefik.http.routers.front.rule=Host(`cloud.${DOMAIN}`)" - - "traefik.http.routers.front.entryPoints=web,traefik" - - "traefik.http.services.front.loadbalancer.server.port=80" - - "traefik.http.routers.front-ssl.rule=Host(`cloud.${DOMAIN}`)" - - "traefik.http.routers.front-ssl.entryPoints=websecure" - - "traefik.http.routers.front-ssl.tls=true" - - "traefik.http.routers.front-ssl.service=front" - - "traefik.http.routers.front-ssl.tls.certresolver=myresolver" - networks: - nextcloud: - aliases: - - front + db: + + image: mariadb:10.5 + + container_name: nextcloud-db + + restart: always + + command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW + + volumes: + + - /data/mariadb/db:/var/lib/mysql - collabora: - image: collabora/code - restart: unless-stopped - labels: - - "traefik.http.routers.collabora.rule=Host(`office.${DOMAIN}`)" - - "traefik.http.routers.collabora.entryPoints=web,traefik" - - "traefik.http.services.collabora.loadbalancer.server.port=9980" - - "traefik.http.routers.collabora-ssl.rule=Host(`office.${DOMAIN}`)" - - "traefik.http.routers.collabora-ssl.entryPoints=websecure" - - "traefik.http.routers.collabora-ssl.tls=true" - - "traefik.http.routers.collabora-ssl.service=collabora" - - "traefik.http.routers.collabora-ssl.tls.certresolver=myresolver" - - "traefik.wss.protocol=https" environment: - extra_params: "--o:ssl.enable=true" - domain: cloud\\.tcweb\\.org - networks: - nextcloud: - aliases: - - collabora - nextcloud-app: - image: nextcloud:22-fpm - environment: - MYSQL_USER: nextcloud - MYSQL_PASSWORD: "${MYSQL_PASSWORD}" - MYSQL_DATABASE: nextcloud - MYSQL_HOST: mysql - REDIS_HOST: redis - PHP_MEMORY_LIMIT: 4096M - depends_on: - - nextcloud-db - - nextcloud-redis - restart: unless-stopped - volumes: - - ./nextcloud-data/:/var/www/html - networks: - nextcloud: - aliases: - - app + - MYSQL_DATABASE=nextcloud - nextcloud-cron: - image: nextcloud:22-fpm - environment: - MYSQL_USER: nextcloud - MYSQL_PASSWORD: "${MYSQL_PASSWORD}" - MYSQL_DATABASE: nextcloud - MYSQL_HOST: mysql - REDIS_HOST: redis - PHP_MEMORY_LIMIT: 4096M - entrypoint: /cron.sh - depends_on: - - nextcloud-db - - nextcloud-redis - restart: unless-stopped - volumes: - - ./nextcloud-data/:/var/www/html - networks: - nextcloud: - aliases: - - cron + - MYSQL_ROOT_PASSWORD=loveff.22 + + - MYSQL_USER=nextcloud + + - MYSQL_PASSWORD=boge14@Level5 + + + + redis: + + image: redis:alpine + + container_name: nextcloud_redis + + restart: always + + expose: + + - 6379 + + + + cron: + + image: nextcloud:27.0.1-apache + + restart: always + + volumes: + + - /data/nextcloud/cron:/var/www/html + + entrypoint: /cron.sh + + depends_on: + + - db + + - redis - nextcloud-redis: - image: redis:latest - restart: unless-stopped - networks: - nextcloud: - aliases: - - redis - nextcloud-db: - image: mariadb:latest - restart: unless-stopped - environment: - MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}" - MYSQL_PASSWORD: "${MYSQL_PASSWORD}" - MYSQL_DATABASE: nextcloud - MYSQL_USER: nextcloud - command: --innodb_read_only_compressed=OFF - volumes: - - ./nextcloud-db:/var/lib/mysql - networks: - nextcloud: - aliases: - - mysql -# Custom network so all services can communicate using a FQDN -networks: nextcloud: + + image: nextcloud:27.0.1-apache + + container_name: nextcloud_web + + restart: always + + volumes: + + - /data/nextcloud:/var/www/html + + environment: + + - NEXTCLOUD_ADMIN_USER=zeaslity + + - NEXTCLOUD_ADMIN_PASSWORD=loveff.22 + + - NEXTCLOUD_TRUSTED_DOMAINS='nc.107421.xyz' + + - REDIS_HOST=redis + + - VIRTUAL_HOST=nc.107421.xyz + + - TZ=Aisa/Shanghai + + - MYSQL_DATABASE=nextcloud + + - MYSQL_ROOT_PASSWORD=loveff.22 + + - MYSQL_USER=nextcloud + + - MYSQL_PASSWORD=boge14@Level5 + + - MYSQL_HOST=db + + - UID=0 + + - GID=0 + + - UPLOAD_MAX_SIZE=10240M + + - APC_SHM_SIZE=8192M + + - OPCACHE_MEM_SIZE=5120 + + - CRON_PERIOD=15m + + - PHP_UPLOAD_LIMIT=5120M + + - PHP_MEMORY_LIMIT=5120M + + + depends_on: + + - db + + - redis + + links: + + - db + + cap_add: + + - MKNOD + + ports: + - 8080:80 + + cloud_collabora: + image: collabora/code:23.05.2.2.1 + container_name: cloud_collabora + environment: + - aliasgroup2=https://office.107421.xyz:443 + - servername=office.107421.xyz + - username=zeaslity + - password=lovemm.23 + - dictionaries=en_US zh_CN + cap_add: + - MKNOD + ports: + - 9980:9980 + restart: always + volumes: + - ./collabora/coolwsd.xml:/etc/coolwsd/coolwsd.xml + + +# https://blog.csdn.net/u013568040/article/details/123648666 \ No newline at end of file diff --git a/部署应用/Seoul-arm64-02/nextcloud-docker/env.sample b/部署应用/Seoul-arm64-02/nextcloud-docker/env.sample deleted file mode 100644 index 9b69610..0000000 --- a/部署应用/Seoul-arm64-02/nextcloud-docker/env.sample +++ /dev/null @@ -1,3 +0,0 @@ -DOMAIN=cloud.tcweb.org -MYSQL_PASSWORD= -MYSQL_ROOT_PASSWORD= \ No newline at end of file diff --git a/部署应用/Seoul-arm64-02/nextcloud-docker/init.sh b/部署应用/Seoul-arm64-02/nextcloud-docker/init.sh deleted file mode 100644 index bfc797d..0000000 --- a/部署应用/Seoul-arm64-02/nextcloud-docker/init.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -function generatePassword() { - openssl rand -hex 16 -} - -MYSQL_PASSWORD=$(generatePassword) -MYSQL_ROOT_PASSWORD=$(generatePassword) - -cat "$(dirname "$0")/env.sample" | sed \ - -e "s#MYSQL_PASSWORD=.*#MYSQL_PASSWORD=${MYSQL_PASSWORD}#g" \ - -e "s#MYSQL_ROOT_PASSWORD=.*#MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}#g" \ - "$(dirname "$0")/.env" - -touch "$(dirname "$0")/acme.json" -chmod 600 "$(dirname "$0")/acme.json" diff --git a/部署应用/Seoul-arm64-02/nextcloud-docker/nextcloud-nginx.conf b/部署应用/Seoul-arm64-02/nextcloud-docker/nextcloud-nginx.conf new file mode 100644 index 0000000..f588758 --- /dev/null +++ b/部署应用/Seoul-arm64-02/nextcloud-docker/nextcloud-nginx.conf @@ -0,0 +1,81 @@ +server { + server_name _; # This is just an invalid value which will never trigger on a real hostname. + server_tokens off; + listen 80; + access_log /var/log/nginx/access.log main; + return 503; +} + +upstream nc.107421.xyz { + ## Can be connected with "nextcloud_default" network + # nextcloud_web + server localhost:8080; +} + +server { + server_name nc.107421.xyz; + listen 80 ; + return 301 https://nc.107421.xyz$request_uri; +} + + +server { + listen 443 ssl; + ssl_certificate /etc/nginx/conf.d/ssl_key/nc.107421.xyz.cert.pem; + ssl_certificate_key /etc/nginx/conf.d/ssl_key/nc.107421.xyz.key.pem; + ssl_session_timeout 1d; + ssl_session_cache shared:MozSSL:10m; + ssl_session_tickets off; + + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; + ssl_prefer_server_ciphers off; + + server_name nc.107421.xyz; + + location / { + + access_log /var/log/nginx/access.log main; + client_max_body_size 5120m; + client_body_buffer_size 5120m; + client_body_timeout 6000s; + proxy_send_timeout 10000s; + proxy_read_timeout 10000s; + proxy_connect_timeout 600s; + proxy_max_temp_file_size 5120m; + proxy_request_buffering on; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 12k; + + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + + proxy_redirect off; + proxy_pass http://nc.107421.xyz; + + } + + location /office { + + access_log /var/log/nginx/access.log main; + client_max_body_size 5120m; + client_body_buffer_size 5120m; + client_body_timeout 6000s; + proxy_send_timeout 10000s; + proxy_read_timeout 10000s; + proxy_connect_timeout 600s; + proxy_max_temp_file_size 5120m; + proxy_request_buffering on; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 12k; + + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + + proxy_redirect off; + proxy_pass http://localhost:9980; + + } +} \ No newline at end of file diff --git a/部署应用/Seoul-arm64-02/nextcloud-docker/nginx.conf b/部署应用/Seoul-arm64-02/nextcloud-docker/nginx.conf deleted file mode 100644 index ab0d181..0000000 --- a/部署应用/Seoul-arm64-02/nextcloud-docker/nginx.conf +++ /dev/null @@ -1,141 +0,0 @@ -upstream php-handler { - server app:9000; -} - -server { - listen 80; - server_name cloud.tcweb.org; - - # Add headers to serve security related headers - # Before enabling Strict-Transport-Security headers please read into this - # topic first. - #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; - # - # WARNING: Only add the preload option once you read about - # the consequences in https://hstspreload.org/. This option - # will add the domain to a hardcoded list that is shipped - # in all major browsers and getting removed from this list - # could take several months. - add_header Referrer-Policy "no-referrer" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-Download-Options "noopen" always; - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Permitted-Cross-Domain-Policies "none" always; - add_header X-Robots-Tag "none" always; - add_header X-XSS-Protection "1; mode=block" always; - - # Remove X-Powered-By, which is an information leak - fastcgi_hide_header X-Powered-By; - - # Path to the root of your installation - root /var/www/html; - - location = /robots.txt { - allow all; - log_not_found off; - access_log off; - } - - # The following 2 rules are only needed for the user_webfinger app. - # Uncomment it if you're planning to use this app. - #rewrite ^/.well-known/host-meta /public.php?service=host-meta last; - #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; - - # The following rule is only needed for the Social app. - # Uncomment it if you're planning to use this app. - #rewrite ^/.well-known/webfinger /public.php?service=webfinger last; - - location = /.well-known/carddav { - return 301 $scheme://$host:$server_port/remote.php/dav; - } - - location = /.well-known/caldav { - return 301 $scheme://$host:$server_port/remote.php/dav; - } - - # set max upload size - client_max_body_size 10G; - fastcgi_buffers 64 4K; - - # Enable gzip but do not remove ETag headers - gzip on; - gzip_vary on; - gzip_comp_level 4; - gzip_min_length 256; - gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; - gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; - - # Uncomment if your server is build with the ngx_pagespeed module - # This module is currently not supported. - #pagespeed off; - - location / { - rewrite ^ /index.php; - } - - location ~ ^\/(?:build|tests|config|lib|3rdparty|templates|data)\/ { - deny all; - } - location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) { - deny all; - } - - location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) { - fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; - set $path_info $fastcgi_path_info; - try_files $fastcgi_script_name =404; - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $path_info; - # fastcgi_param HTTPS on; - - # Avoid sending the security headers twice - fastcgi_param modHeadersAvailable true; - - # Enable pretty urls - fastcgi_param front_controller_active true; - fastcgi_pass php-handler; - fastcgi_intercept_errors on; - fastcgi_request_buffering off; - } - - location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) { - try_files $uri/ =404; - index index.php; - } - - # Adding the cache control header for js, css and map files - # Make sure it is BELOW the PHP block - location ~ \.(?:css|js|woff2?|svg|gif|map)$ { - try_files $uri /index.php$request_uri; - add_header Cache-Control "public, max-age=15778463"; - # Add headers to serve security related headers (It is intended to - # have those duplicated to the ones above) - # Before enabling Strict-Transport-Security headers please read into - # this topic first. - #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; - # - # WARNING: Only add the preload option once you read about - # the consequences in https://hstspreload.org/. This option - # will add the domain to a hardcoded list that is shipped - # in all major browsers and getting removed from this list - # could take several months. - add_header Referrer-Policy "no-referrer" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-Download-Options "noopen" always; - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Permitted-Cross-Domain-Policies "none" always; - add_header X-Robots-Tag "none" always; - add_header X-XSS-Protection "1; mode=block" always; - - # Optional: Don't log access to assets - access_log off; - } - - location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ { - try_files $uri /index.php$request_uri; - # Optional: Don't log access to other assets - access_log off; - } -} - diff --git a/部署应用/Seoul-arm64-02/个人图书馆komga/个人图书馆证书申请.sh b/部署应用/Seoul-arm64-02/个人图书馆komga/个人图书馆证书申请.sh index 767be52..6b5e76a 100644 --- a/部署应用/Seoul-arm64-02/个人图书馆komga/个人图书馆证书申请.sh +++ b/部署应用/Seoul-arm64-02/个人图书馆komga/个人图书馆证书申请.sh @@ -1,6 +1,6 @@ #!/bin/bash -export DOMAIN_NAME=book.107421.xyz +export DOMAIN_NAME=office.107421.xyz export CF_Token="oXJRP5XI8Zhipa_PtYtB_jy6qWL0I9BosrJEYE8p" export CF_Account_ID="dfaadeb83406ef5ad35da02617af9191"