server { server_name lsd25.xyz; listen 202.61.255.116:443; listen [2a03:4000:55:d20::]:443; root /mnt/gluster01/web/shlink-web; index index.html; charset utf-8; ssl_certificate /etc/ssl/lysergic/fullchain.pem; ssl_certificate_key /etc/ssl/lysergic/private/privkey.pem; location ~* \.(?:manifest|appcache|html?|xml|json)$ { expires -1; } location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; add_header Cache-Control "public"; } location ~* \.(?:css|js)$ { expires 1y; add_header Cache-Control "public"; } location ~* .+\.(css|js|html|png|jpe?g|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) { try_files $uri $uri/ =404; } location / { auth_basic "Lysergic URL Shortening Service"; auth_basic_user_file /mnt/gluster01/web/auth/shlink-web; try_files $uri $uri/ /index.html$is_args$args; } }