Use nginx to serve the website
All checks were successful
Build and test project / build-and-test (push) Successful in 1m29s
All checks were successful
Build and test project / build-and-test (push) Successful in 1m29s
This commit is contained in:
26
nginx.conf.template
Normal file
26
nginx.conf.template
Normal file
@@ -0,0 +1,26 @@
|
||||
worker_processes auto;
|
||||
error_log stderr;
|
||||
pid /tmp/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
access_log off;
|
||||
sendfile on;
|
||||
gzip on;
|
||||
gzip_types text/html text/css application/javascript application/json application/wasm;
|
||||
|
||||
server {
|
||||
listen ${PORT} default_server;
|
||||
root web/dist;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user