Compare commits

..

4 commits

Author SHA1 Message Date
e35780ea63 include runner config
All checks were successful
/ build (push) Successful in 24s
2024-12-28 00:49:57 +00:00
ea770fa944 no more copying from patches folder 2024-12-28 00:43:52 +00:00
80a6b8f15b use public_html fallback 2024-12-28 00:40:27 +00:00
6940dce6e7 try public html 2024-12-27 15:59:47 -08:00
2 changed files with 26 additions and 11 deletions

View file

@ -12,5 +12,6 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- run: mkdir -p /data/nycki.net/site - run: mkdir -p /data/nycki.net/site
- run: cp tools/site.conf /data/nycki.net/site.conf # - run: cp tools/site.conf /data/nycki.net/site.conf
- run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/ # - run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/
- run: cp -r _site/* /data/nycki.net/site/

View file

@ -20,8 +20,10 @@
ServerName nycki.net ServerName nycki.net
SSLEngine on SSLEngine on
Include /etc/letsencrypt/options-ssl-apache.conf Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/klay.gay/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem
Header always add Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload;" #Header always add Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload;"
<If "%{HTTPS} == 'off'"> <If "%{HTTPS} == 'off'">
<If "%{HTTP:Upgrade-Insecure-Requests} == 1"> <If "%{HTTP:Upgrade-Insecure-Requests} == 1">
Header always add Vary: Upgrade-Insecure-Requests Header always add Vary: Upgrade-Insecure-Requests
@ -29,15 +31,27 @@
</If> </If>
</If> </If>
DocumentRoot /data/nycki.net/site DocumentRoot /data/nycki.net/site
ErrorDocument 404 404.html ErrorDocument 404 /404.html
RewriteEngine on
#LogLevel alert rewrite:trace3
RewriteCond "%{DOCUMENT_ROOT}/%{REQUEST_URI}" -f
RewriteRule "(.+)" "/$1" [L]
<Directory /> <Directory />
Options FollowSymLinks MultiViews Options FollowSymLinks MultiViews
Require all granted Require all granted
</Directory> </Directory>
SSLCertificateFile /etc/letsencrypt/live/klay.gay/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem # If file isn't in repo, fall back on public_html
Define public_html "/home/nycki/public_html"
Alias /p ${public_html}
RewriteCond "${public_html}/%{REQUEST_URI}" -f
RewriteRule "(.+)" "/p/$1" [PT,L]
<Directory ${public_html}>
Options FollowSymLinks
Require all granted
</Directory>
</VirtualHost> </VirtualHost>
<VirtualHost *:443> <VirtualHost *:443>
@ -47,8 +61,8 @@ SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem
<Location /> <Location />
ProxyPass http://localhost:8400/ ProxyPass http://localhost:8400/
</Location> </Location>
SSLCertificateFile /etc/letsencrypt/live/klay.gay/fullchain.pem SSLCertificateFile /etc/letsencrypt/live/klay.gay/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem
</VirtualHost> </VirtualHost>
<VirtualHost *:443> <VirtualHost *:443>
@ -61,6 +75,6 @@ SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem
<Location /> <Location />
ProxyPass http://localhost:8500/ nocanon ProxyPass http://localhost:8500/ nocanon
</Location> </Location>
SSLCertificateFile /etc/letsencrypt/live/klay.gay/fullchain.pem SSLCertificateFile /etc/letsencrypt/live/klay.gay/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem SSLCertificateKeyFile /etc/letsencrypt/live/klay.gay/privkey.pem
</VirtualHost> </VirtualHost>