aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / scripts / edge / nginx-om-text.conf
| 1 | # INTERIM host-side edge rule. Installed on the hub nginx as |
| 2 | # /etc/nginx/snippets/aienos-om-text.conf and included inside the |
| 3 | # www.aienos.com server block of /etc/nginx/sites-enabled/aienos.com. |
| 4 | # |
| 5 | # GitHub Pages types an unknown .om extension as application/octet-stream, so a |
| 6 | # browser saves Omega source as a binary file nothing opens. This rule makes |
| 7 | # every served .om plain UTF-8 text, the same as the Aien chat page's |
| 8 | # <name>.om.txt download. |
| 9 | # |
| 10 | # Successor: the Omega page generators (om/alpha-page/page.om and any later |
| 11 | # page that serves source) emit a <name>.om.txt twin beside each served .om, |
| 12 | # which Pages already types as text/plain; then this rule and its include go. |
| 13 | location ~ \.om$ { |
| 14 | proxy_pass https://aienos_github_pages; |
| 15 | proxy_http_version 1.1; |
| 16 | proxy_set_header Host www.aienos.com; |
| 17 | proxy_set_header X-Forwarded-Host $host; |
| 18 | proxy_set_header X-Forwarded-Proto https; |
| 19 | proxy_set_header X-Real-IP $remote_addr; |
| 20 | proxy_ssl_name www.aienos.com; |
| 21 | proxy_redirect off; |
| 22 | proxy_hide_header Content-Type; |
| 23 | add_header Content-Type "text/plain; charset=utf-8" always; |
| 24 | add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; |
| 25 | add_header X-Content-Type-Options nosniff always; |
| 26 | add_header Referrer-Policy strict-origin-when-cross-origin always; |
| 27 | add_header X-Frame-Options DENY always; |
| 28 | add_header Content-Security-Policy "frame-ancestors 'none'" always; |
| 29 | } |