The next-generation file converter. Open source, fully local* and free forever.
chore(docker): move nginx config to a separate folder
azurejellyc62633bd23a7
diff --git a/Dockerfile b/Dockerfileindex 5ae62a4..e076900 100644--- a/Dockerfile+++ b/Dockerfile@@ -26,6 +26,6 @@ RUN bun run buildFROM nginx:stable-alpine-COPY ./nginx.conf /etc/nginx/conf.d/default.conf+COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf-COPY --from=builder /app/build /usr/share/nginx/html+COPY --from=builder /app/build /usr/share/nginx/html\ No newline at end of filediff --git a/nginx/default-ssl.conf b/nginx/default-ssl.confnew file mode 100644index 0000000..ad3dad4--- /dev/null+++ b/nginx/default-ssl.conf@@ -0,0 +1,26 @@+server {+ listen 80;+ server_name vert;++ # Redirect all HTTP traffic to HTTPS+ return 301 https://$host$request_uri;+}++server {+ listen 443 ssl;+ server_name vert;++ ssl_certificate /etc/ssl/vert/vert.crt;+ ssl_certificate_key /etc/ssl/vert/vert.key;++ root /usr/share/nginx/html;+ index index.html;++ client_max_body_size 10M;++ location / {+ try_files $uri $uri/ /index.html;+ }++ error_page 404 /index.html;+}\ No newline at end of filediff --git a/nginx/default.conf b/nginx/default.confnew file mode 100644index 0000000..b8f487b--- /dev/null+++ b/nginx/default.conf@@ -0,0 +1,15 @@+server {+ listen 80;+ server_name vert;++ root /usr/share/nginx/html;+ index index.html;++ client_max_body_size 10M;++ location / {+ try_files $uri $uri/ /index.html;+ }++ error_page 404 /index.html;+}\ No newline at end of file