toolshed/nginx.conf

37 lines
674 B
Nginx Configuration File
Raw Normal View History

2023-07-01 15:21:32 +00:00
worker_processes 2;
events {
use epoll;
worker_connections 128;
}
error_log logs/error.log info;
http {
server_tokens off;
include /etc/nginx/mime.types;
charset utf-8;
access_log logs/access.log combined;
server {
server_name localhost;
listen 0.0.0.0:8080;
error_page 500 502 503 504 /50x.html;
location / {
root frontend/dist/;
}
location /api/ {
proxy_pass http://127.0.0.1:8000/api/;
}
location /auth/ {
proxy_pass http://127.0.0.1:8000/auth/;
}
}
}