removed unused auth
This commit is contained in:
parent
57eab42b42
commit
dccd95e1f2
@ -42,6 +42,21 @@ server {
|
|||||||
proxy_set_header If-Range $http_if_range;
|
proxy_set_header If-Range $http_if_range;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Static assets with cache control
|
||||||
|
location ~ \.(js|css|html|png|svg|jpg|jpeg|gif)$ {
|
||||||
|
proxy_pass http://xtream_backend;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
|
# Disable caching for assets - force browser to revalidate
|
||||||
|
add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0" always;
|
||||||
|
add_header Pragma "no-cache" always;
|
||||||
|
add_header Expires "0" always;
|
||||||
|
}
|
||||||
|
|
||||||
# Health check endpoint
|
# Health check endpoint
|
||||||
location /health {
|
location /health {
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|||||||
@ -319,9 +319,6 @@ public final class XtreamPlayerApplication {
|
|||||||
private record StreamProxyHandler(UserAuthenticator userAuthenticator) implements HttpHandler {
|
private record StreamProxyHandler(UserAuthenticator userAuthenticator) implements HttpHandler {
|
||||||
@Override
|
@Override
|
||||||
public void handle(HttpExchange exchange) throws IOException {
|
public void handle(HttpExchange exchange) throws IOException {
|
||||||
if (!requireAuth(exchange, userAuthenticator)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Map<String, String> query = parseKeyValue(exchange.getRequestURI().getRawQuery());
|
Map<String, String> query = parseKeyValue(exchange.getRequestURI().getRawQuery());
|
||||||
logApiRequest(exchange, "/api/stream-proxy", query);
|
logApiRequest(exchange, "/api/stream-proxy", query);
|
||||||
if (!"GET".equalsIgnoreCase(exchange.getRequestMethod())) {
|
if (!"GET".equalsIgnoreCase(exchange.getRequestMethod())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user