37 lines
No EOL
674 B
Nginx Configuration File
37 lines
No EOL
674 B
Nginx Configuration File
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/;
|
|
}
|
|
|
|
}
|
|
|
|
} |