Nginx install and simple config

This commit is contained in:
2022-08-14 00:21:15 +02:00
parent cf0bd9aa84
commit 97ed8a491e
2 changed files with 33 additions and 2 deletions

30
nginx.conf Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 5000 default_server;
listen [::]:5000 default_server;
# server_name request.movie;
root /opt/seasoned/public;
gzip on;
gzip_types application/javascript;
gzip_min_length 1000;
gzip_static on;
location /favicons {
autoindex on;
}
location /dist {
add_header Content-Type application/javascript;
try_files $uri =404;
}
location /api {
proxy_pass https://request.movie/api;
}
location / {
try_files $uri $uri/ /index.html;
index index.html;
}
}