mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 00:42:59 +08:00
30 lines
No EOL
895 B
Text
30 lines
No EOL
895 B
Text
server {
|
|
listen [::]:80;
|
|
listen 80;
|
|
server_name felicitylims.com;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen [::]:443 ssl http2;
|
|
listen 443 ssl http2;
|
|
server_name felicitylims.com;
|
|
access_log /var/log/nginx/felicitylims.access.log;
|
|
error_log /var/log/nginx/felicitylims.error.log;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/felicitylims.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/felicitylims.com/privkey.pem;
|
|
|
|
include /etc/nginx/conf.d/ssl.conf;
|
|
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header X-XSS-Protection "1; mode=block" always;
|
|
|
|
location / {
|
|
proxy_pass http://unix:/root/felicitylims/app/felicitylims.sock;
|
|
proxy_connect_timeout 75s;
|
|
proxy_send_timeout 75s;
|
|
proxy_read_timeout 75s;
|
|
send_timeout 75s;
|
|
}
|
|
} |