This commit is contained in:
@@ -4,4 +4,4 @@ WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm ci
|
||||
|
||||
CMD npx serve /mnt/media/files
|
||||
CMD ["npx", "serve", "/mnt/media/files", "-c", "serve.json"]
|
||||
|
||||
21
serve.json
Normal file
21
serve.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"headers": [
|
||||
{
|
||||
"source": "*",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Access-Control-Allow-Origin",
|
||||
"value": "*"
|
||||
},
|
||||
{
|
||||
"key": "Access-Control-Allow-Methods",
|
||||
"value": "GET, POST, PUT, DELETE, OPTIONS"
|
||||
},
|
||||
{
|
||||
"key": "Access-Control-Allow-Headers",
|
||||
"value": "Content-Type, Authorization"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user