Provide authenticated IP HTTPS access and clarify server UI
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# An authenticated HTTPS entry while the CDN domain is being configured.
|
||||
# Uses the server's separately renewed IP certificate and an unused port.
|
||||
server {
|
||||
listen 9443 ssl;
|
||||
listen [::]:9443 ssl;
|
||||
server_name 186.241.68.230;
|
||||
ssl_certificate /etc/letsencrypt/live/186.241.68.230/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/186.241.68.230/privkey.pem;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
client_max_body_size 100m;
|
||||
auth_basic "Kaoyan Workbench";
|
||||
auth_basic_user_file /etc/nginx/kaoyan-studio.htpasswd;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8765;
|
||||
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 https;
|
||||
proxy_read_timeout 120s;
|
||||
proxy_hide_header Cache-Control;
|
||||
add_header Cache-Control "private, no-store" always;
|
||||
add_header X-Content-Type-Options nosniff always;
|
||||
add_header X-Frame-Options DENY always;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user