feat(frontend): scaffolding to build frontend

- Added `make fnginx` to have better dev experience
- Added app.conf to nginx configuration to handle frontend
This commit is contained in:
Maieul BOYER 2025-11-10 16:58:42 +01:00 committed by Maix0
parent 5dd6067c95
commit 0db41a440d
11 changed files with 186 additions and 10 deletions

47
nginx-dev/nginx.conf Normal file
View file

@ -0,0 +1,47 @@
worker_processes 1;
pid /dev/null;
daemon off;
error_log stderr debug;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
access_log /dev/stderr;
listen 8000 ssl;
server_name localhost;
ssl_certificate nginx-selfsigned.crt;
ssl_certificate_key nginx-selfsigned.key;
ssl_protocols TLSv1.3;
error_page 497 https://$http_host$request_uri;
location /api {
proxy_ssl_verify off;
proxy_pass https://localhost:8888;
}
location /assets {
proxy_pass http://localhost:5173;
proxy_ssl_verify off;
}
location /app {
proxy_pass http://localhost:5173/;
proxy_ssl_verify off;
}
location / {
proxy_ssl_verify off;
return 301 'https://$http_host/app/$request_uri';
}
}
}