Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

nginx 照着安装之后居上403 #10

Open
Ks2s opened this issue May 10, 2020 · 0 comments
Open

nginx 照着安装之后居上403 #10

Ks2s opened this issue May 10, 2020 · 0 comments

Comments

@Ks2s
Copy link

Ks2s commented May 10, 2020

May 10 11:10:25 Web2 systemd[1]: YukiDrive.service: Failed to reset devices.list: Operation not permitted
May 10 11:10:25 Web2 systemd[1]: Started YukiDrive.
May 10 11:10:26 Web2 dotnet-YukiDrive[29326]: 开始启动程序...
May 10 11:10:30 Web2 dotnet-YukiDrive[29326]: Hosting environment: Production
May 10 11:10:30 Web2 dotnet-YukiDrive[29326]: Content root path: /home/Yukidrive
May 10 11:10:30 Web2 dotnet-YukiDrive[29326]: Now listening on: http://[::]:1273
May 10 11:10:30 Web2 dotnet-YukiDrive[29326]: Application started. Press Ctrl+C to shut down.

nginx
`server
{
listen 80;
listen 443 ssl http2;
server_name bac..tk;
root /home/Yukidrive/wwwroot;

location / {
    proxy_pass         http://localhost:1273; #填写为配置文件中的 Listening Urls
    proxy_http_version 1.1;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection keep-alive;
    proxy_set_header   Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto $scheme;
}

#SSL-START  证书是cloudflare 15年证书
ssl on;
	ssl_certificate /home/key/server.crt; #(证书公钥)
	ssl_certificate_key /home/key/server.key; #(证书私钥)

	ssl_session_timeout 5m;
	ssl_protocols  SSLv2 SSLv3 TLSv1;
	ssl_ciphers  HIGH:!aNULL:!MD5;
	ssl_prefer_server_ciphers on;
#SSL-END

}`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant