Revert "chore(deploy): add Dockerfile + nginx.conf for Coolify static-site service"
This reverts commit fc87a59c22.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
.git/
|
||||
.atl/
|
||||
node_modules/
|
||||
*.log
|
||||
.DS_Store
|
||||
.env
|
||||
.env.local
|
||||
README.md
|
||||
CHANGELOG.md
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# Replace the default nginx site config with the project's static-site config
|
||||
# which routes directory URLs (e.g. /ca/, /es/) to their index.html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Copy all static assets into nginx's serve directory
|
||||
COPY . /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
server {
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri.html $uri/index.html $uri/index.htm $uri/ =404;
|
||||
}
|
||||
|
||||
# Handle 404 errors
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
root /usr/share/nginx/html;
|
||||
internal;
|
||||
}
|
||||
|
||||
# Handle server errors (50x)
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
internal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user