Nginx install and simple config
This commit is contained in:
30
nginx.conf
Normal file
30
nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user