Updated socket connection code to support docker. Also updated dockerfile and entrypoint to support new file structure.
This commit is contained in:
@@ -27,6 +27,11 @@ http {
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
# CORS headers
|
||||
add_header 'Access-Control-Allow-Origin' '*'; # Allow all origins (can be restricted to a specific domain)
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST'; # Allow GET and POST methods
|
||||
add_header 'Access-Control-Allow-Headers' 'Content-Type, Accept'; # Standard headers for requests
|
||||
}
|
||||
|
||||
# Error pages
|
||||
|
||||
Reference in New Issue
Block a user