[Unit]Description=Frp Server ServiceAfter=network.target[Service]Type=simpleUser=nobodyRestart=on-failureExecStart=/home/frps/frps -c /home/frps/frps.ini[Install]WantedBy=multi-user.target
server{listen81ssl;server_nameblog.gruex.info;ssl_certificateC:\Users\11198\Desktop\ssl\blog.gruex.cc_bundle.pem;ssl_certificate_keyC:\Users\11198\Desktop\ssl\blog.gruex.info.key;ssl_session_cacheshared:SSL:1m;ssl_session_timeout5m;ssl_ciphersHIGH:!aNULL:!MD5;ssl_prefer_server_cipherson;# Allow special characters in headers
ignore_invalid_headersoff;# Allow any size file to be uploaded.
# Set to a value such as 1000m; to restrict file size to a specific value
client_max_body_size0;# Disable buffering
proxy_bufferingoff;proxy_request_bufferingoff;location/{proxy_set_headerHost$http_host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_headerX-Forwarded-Proto$scheme;proxy_connect_timeout300;# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
proxy_http_version1.1;proxy_set_headerUpgrade$http_upgrade;proxy_set_headerConnection"upgrade";proxy_next_upstreamhttp_500http_502http_503http_504errortimeoutinvalid_header;chunked_transfer_encodingoff;proxy_passhttp://localhost:9001;# This uses the upstream directive definition to load balance
}location^~/data/{rewrite^/data/(.*)$/$1break;proxy_set_headerHost$http_host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_headerX-Forwarded-Proto$scheme;proxy_set_headerX-NginX-Proxytrue;# This is necessary to pass the correct IP to be hashed
real_ip_headerX-Real-IP;proxy_connect_timeout300;# To support websockets in MinIO versions released after January 2023
proxy_http_version1.1;proxy_set_headerUpgrade$http_upgrade;proxy_set_headerConnection"upgrade";chunked_transfer_encodingoff;proxy_passhttp://localhost:9000;# This uses the upstream directive definition to load balance and assumes a static Console port of 9001
}}