Skip to content

Commit 6daed54

Browse files
author
Raas Ahsan
committed
use https
1 parent 5f6c86c commit 6daed54

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

resty/paste.click.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ inactive=24h max_size=10g;
88
server {
99
listen 80;
1010
# listen 443 ssl;
11+
1112
server_name paste.click origin.cdn.paste.click _;
1213

14+
if ($http_x_forwarded_proto != 'https') {
15+
return 301 https://$host$request_uri;
16+
}
17+
1318
root /www/paste.click/;
1419
client_max_body_size 10G;
1520
error_page 404 /404.html;
@@ -65,7 +70,7 @@ server {
6570
proxy_set_header Host $host;
6671
proxy_set_header X-Real-IP $remote_addr;
6772
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
68-
proxy_set_header X-Scheme $scheme;
73+
proxy_set_header X-Scheme https;
6974
proxy_cache STATIC;
7075
proxy_cache_valid 200 1y;
7176
proxy_cache_use_stale error timeout invalid_header updating

0 commit comments

Comments
 (0)