We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6c86c commit 6daed54Copy full SHA for 6daed54
resty/paste.click.conf
@@ -8,8 +8,13 @@ inactive=24h max_size=10g;
8
server {
9
listen 80;
10
# listen 443 ssl;
11
+
12
server_name paste.click origin.cdn.paste.click _;
13
14
+ if ($http_x_forwarded_proto != 'https') {
15
+ return 301 https://$host$request_uri;
16
+ }
17
18
root /www/paste.click/;
19
client_max_body_size 10G;
20
error_page 404 /404.html;
@@ -65,7 +70,7 @@ server {
65
70
proxy_set_header Host $host;
66
71
proxy_set_header X-Real-IP $remote_addr;
67
72
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;
69
74
proxy_cache STATIC;
75
proxy_cache_valid 200 1y;
76
proxy_cache_use_stale error timeout invalid_header updating
0 commit comments