attempting proxying

This commit is contained in:
2025-12-08 23:08:48 -05:00
parent c44292dab4
commit f49f2bb331
2 changed files with 12 additions and 1 deletions

View File

@@ -10,5 +10,10 @@ RUN npm run build
FROM nginx:alpine FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
# Copy SSL certificate and key
COPY 192.168.1.102+1.pem /etc/nginx/ssl/server.crt
COPY 192.168.1.102+1-key.pem /etc/nginx/ssl/server.key
EXPOSE 80 EXPOSE 80
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View File

@@ -5,10 +5,16 @@ http {
default_type application/octet-stream; default_type application/octet-stream;
server { server {
listen 80; listen 443 ssl;
server_name _; server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location /api/ { location /api/ {
proxy_pass http://chore-app-backend:5000/; proxy_pass http://chore-app-backend:5000/;
proxy_set_header Host $host; proxy_set_header Host $host;