51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
|
|
# Temporary HTTP-only configuration for quickbooksposhelp.access.ly
|
||
|
|
# Used to obtain SSL certificate, then replaced with HTTPS config
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
listen [::]:80;
|
||
|
|
listen 8888;
|
||
|
|
listen [::]:8888;
|
||
|
|
|
||
|
|
server_name quickbookposhelp.access.ly;
|
||
|
|
|
||
|
|
# Document root
|
||
|
|
root /home/pts/Documents/QBPOS_Help_Web/QB_Help_Web;
|
||
|
|
index POS_Help.html;
|
||
|
|
|
||
|
|
# Access and error logs
|
||
|
|
access_log /var/log/nginx/qbpos-access.log combined buffer=32k;
|
||
|
|
error_log /var/log/nginx/qbpos-error.log warn;
|
||
|
|
|
||
|
|
# Gzip compression
|
||
|
|
gzip on;
|
||
|
|
gzip_vary on;
|
||
|
|
gzip_min_length 1024;
|
||
|
|
gzip_types text/plain text/css text/xml text/javascript
|
||
|
|
application/x-javascript application/xml+rss
|
||
|
|
application/javascript application/json;
|
||
|
|
|
||
|
|
# Static asset caching
|
||
|
|
location ~* \.(gif|jpg|jpeg|png|ico|css|js)$ {
|
||
|
|
expires 1y;
|
||
|
|
add_header Cache-Control "public, immutable";
|
||
|
|
access_log off;
|
||
|
|
}
|
||
|
|
|
||
|
|
# HTML files cache
|
||
|
|
location ~* \.(html|htm)$ {
|
||
|
|
expires 1h;
|
||
|
|
add_header Cache-Control "public, must-revalidate";
|
||
|
|
}
|
||
|
|
|
||
|
|
# Main location
|
||
|
|
location / {
|
||
|
|
try_files $uri $uri/ =404;
|
||
|
|
}
|
||
|
|
|
||
|
|
# Allow certbot verification
|
||
|
|
location /.well-known/acme-challenge/ {
|
||
|
|
root /var/www/html;
|
||
|
|
}
|
||
|
|
}
|