| 1234567891011121314151617181920212223 |
- # /etc/nginx/vhosts.d/mpckit.monoexp.com.conf
- #
- # Static site for mpckit, published from public/ by the deploy pipeline.
- # Port 80 (ACME challenges and the HTTP->HTTPS redirect) is handled by the
- # `.monoexp.com` block in 00-default.conf.
- #
- # Certificate: sudo /usr/local/sbin/issue-cert mpckit.monoexp.com
- server {
- listen 443 ssl; listen [::]:443 ssl;
- server_name mpckit.monoexp.com;
- ssl_certificate /etc/letsencrypt/live/mpckit.monoexp.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/mpckit.monoexp.com/privkey.pem;
- include snippets/tls-common.conf;
- root /srv/www/vhosts/mpckit.monoexp.com;
- index index.html;
- location / { try_files $uri $uri/ =404; }
- # Short cache for the stylesheet, icon and screenshots; HTML keeps nginx's defaults.
- location ~* \.(css|svg|png|webp)$ { expires 1h; }
- }
|