Wallabga服务

Nginx 配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 # PROXY configuration
location / {
proxy_pass http://172.17.0.1:8389;
proxy_redirect http://$host/ https://$host:2443/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

# Disable registration
location ^~ /register {
deny all;
return 403;
}

如果VPS或服务器非443端口需要加上proxy_redirect配置
proxy_redirect http://$host/ https://$host:2443/;

Cheverto图床服务

Nginx 配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
client_max_body_size 5000M;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For '$proxy_add_x_forwarded_for';
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions;
proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key;
proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version;
proxy_cache off;
proxy_buffering off;
proxy_redirect off;
location / {
proxy_pass http://172.17.0.1:8388/; #127.0.0.1改成你本机的IP
proxy_ssl_verify off;
proxy_http_version 1.1;
proxy_read_timeout 86400;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect http:// https://;
}