example chost for ezternal files domain
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name files.note.example.com;
|
||||
|
||||
location ^~ /f/ {
|
||||
proxy_pass http://rustpad:3000;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Cookie "";
|
||||
proxy_set_header Authorization "";
|
||||
|
||||
proxy_hide_header Set-Cookie;
|
||||
|
||||
proxy_intercept_errors on;
|
||||
error_page 404 = @file_not_found;
|
||||
}
|
||||
|
||||
location @file_not_found {
|
||||
internal;
|
||||
default_type text/plain;
|
||||
return 404 "Not Found\n";
|
||||
}
|
||||
|
||||
# Wszystko poza /f/ nie trafia do RustPada
|
||||
location / {
|
||||
default_type text/plain;
|
||||
return 404 "Not Found\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user