This commit is contained in:
@@ -4,4 +4,4 @@ WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm ci
|
||||
|
||||
CMD npx serve --cors /mnt/media/files
|
||||
CMD ["npx", "serve", "/mnt/media/files", "-c", "/app/serve.json"]
|
||||
|
||||
11
serve.json
Normal file
11
serve.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"cors": {
|
||||
"origin": ["https://evilspins.com", "http://localhost:3000"],
|
||||
"methods": ["GET", "HEAD", "PUT", "PATCH", "POST", "DELETE"],
|
||||
"allowedHeaders": ["Content-Type", "Authorization"],
|
||||
"exposedHeaders": ["Content-Range", "X-Content-Range"],
|
||||
"credentials": true
|
||||
},
|
||||
"etag": true,
|
||||
"cacheControl": true
|
||||
}
|
||||
Reference in New Issue
Block a user