Compare commits
3 Commits
c768adaadb
...
d5efecb3d5
Author | SHA1 | Date | |
---|---|---|---|
d5efecb3d5 | |||
eebda46c39 | |||
0513fd5c21 |
@ -102,5 +102,6 @@ Delete your `.sitegen_cache` file.
|
|||||||
|
|
||||||
## thinking about
|
## thinking about
|
||||||
|
|
||||||
|
* use sitecache with pandoc renderer
|
||||||
* draft documents
|
* draft documents
|
||||||
* treesitter highlighting for moonscript
|
* treesitter highlighting for moonscript
|
||||||
|
@ -6,6 +6,11 @@ events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
# server {
|
||||||
|
# listen 80;
|
||||||
|
# return 301 https://$host$request_uri;
|
||||||
|
# }
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
@ -13,6 +18,13 @@ http {
|
|||||||
charset utf-8;
|
charset utf-8;
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
|
|
||||||
|
# ssl_certificate /var/www/certs/miti.sh/fullchain.pem;
|
||||||
|
# ssl_certificate_key /var/www/certs/miti.sh/privkey.pem;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
alias /var/www/dehydrated;
|
||||||
|
}
|
||||||
|
|
||||||
try_files $uri $uri/ $uri.html =404;
|
try_files $uri $uri/ $uri.html =404;
|
||||||
|
|
||||||
# return `/posts/index.html` from `/posts`
|
# return `/posts/index.html` from `/posts`
|
||||||
@ -30,4 +42,95 @@ http {
|
|||||||
alias css;
|
alias css;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
server_name git.miti.sh;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
alias /var/www/dehydrated;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
client_max_body_size 1024M;
|
||||||
|
proxy_pass http://unix:/run/gitea/gitea.socket;
|
||||||
|
proxy_set_header Connection $http_connection;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
server_name apps.miti.sh;
|
||||||
|
|
||||||
|
root /var/www/sites/apps.miti.sh;
|
||||||
|
|
||||||
|
include mime.types;
|
||||||
|
charset utf-8;
|
||||||
|
default_type text/html;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
alias /var/www/dehydrated;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
server_name webdevcat.me;
|
||||||
|
|
||||||
|
include mime.types;
|
||||||
|
charset utf-8;
|
||||||
|
default_type text/html;
|
||||||
|
|
||||||
|
ssl_certificate /var/www/certs/webdevcat.me/fullchain.pem;
|
||||||
|
ssl_certificate_key /var/www/certs/webdevcat.me/privkey.pem;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
alias /var/www/dehydrated;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 https://miti.sh$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ ^/git/?(.*)$ {
|
||||||
|
return 301 https://git.miti.sh/ccm/$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ ^/apps/(.*)$ {
|
||||||
|
return 301 https://apps.miti.sh/$1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
server_name git.webdevcat.me;
|
||||||
|
|
||||||
|
ssl_certificate /var/www/certs/webdevcat.me/fullchain.pem;
|
||||||
|
ssl_certificate_key /var/www/certs/webdevcat.me/privkey.pem;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
alias /var/www/dehydrated;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 301 https://git.miti.sh$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
server_name apps.webdevcat.me;
|
||||||
|
|
||||||
|
ssl_certificate /var/www/certs/webdevcat.me/fullchain.pem;
|
||||||
|
ssl_certificate_key /var/www/certs/webdevcat.me/privkey.pem;
|
||||||
|
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
alias /var/www/dehydrated;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 301 https://apps.miti.sh$request_uri;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,6 @@ sitegen.create =>
|
|||||||
|
|
||||||
copy "app.css"
|
copy "app.css"
|
||||||
copy "pygments.css"
|
copy "pygments.css"
|
||||||
copy "moonscript.css"
|
|
||||||
copy "pandoc.css"
|
copy "pandoc.css"
|
||||||
|
|
||||||
-- replace post markdown yaml headers with moonscript headers
|
-- replace post markdown yaml headers with moonscript headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user