vault backup: 2024-09-14 00:37:55
Affected files: .obsidian/workspace.json Untitled 2.md
This commit is contained in:
parent
f1ef81fd63
commit
6b94fc75f1
|
@ -126,9 +126,21 @@
|
||||||
"source": false
|
"source": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "7370a1fe7a97f402",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "markdown",
|
||||||
|
"state": {
|
||||||
|
"file": "Untitled 2.md",
|
||||||
|
"mode": "source",
|
||||||
|
"source": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"currentTab": 9
|
"currentTab": 10
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "vertical"
|
"direction": "vertical"
|
||||||
|
@ -194,7 +206,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "nocoDB.md",
|
"file": "Untitled 2.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
|
@ -211,7 +223,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "nocoDB.md",
|
"file": "Untitled 2.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
|
@ -234,7 +246,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "nocoDB.md"
|
"file": "Untitled 2.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -277,8 +289,9 @@
|
||||||
"copilot:Copilot Chat": false
|
"copilot:Copilot Chat": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "6cc8d6e8f519ab5e",
|
"active": "7370a1fe7a97f402",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
|
"Untitled 2.md",
|
||||||
"nocoDB.md",
|
"nocoDB.md",
|
||||||
"Untitled 1.md",
|
"Untitled 1.md",
|
||||||
"Alpine - How to....md",
|
"Alpine - How to....md",
|
||||||
|
@ -304,7 +317,6 @@
|
||||||
"Linux.md",
|
"Linux.md",
|
||||||
"Rust.md",
|
"Rust.md",
|
||||||
"YuNoHost.md",
|
"YuNoHost.md",
|
||||||
"Taylor Swift - the 1.md",
|
|
||||||
"Untitled",
|
"Untitled",
|
||||||
"Taylor Swift",
|
"Taylor Swift",
|
||||||
"GNU"
|
"GNU"
|
||||||
|
|
|
@ -0,0 +1,204 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/etc/nginx/conf.d/ollama.corbia.net.conf
|
||||||
|
|
||||||
|
```
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
|
||||||
|
default upgrade;
|
||||||
|
|
||||||
|
'' close;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name ollama.corbia.net;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
access_by_lua_file /usr/share/ssowat/access.lua;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/acme-challenge.conf.inc;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
location ^~ '/.well-known/ynh-diagnosis/' {
|
||||||
|
|
||||||
|
alias /var/www/.well-known/ynh-diagnosis/;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
location ^~ '/.well-known/autoconfig/mail/' {
|
||||||
|
|
||||||
|
alias /var/www/.well-known/ollama.corbia.net/autoconfig/mail/;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
location / {
|
||||||
|
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/yunohost_http_errors.conf.inc;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
access_log /var/log/nginx/ollama.corbia.net-access.log;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/ollama.corbia.net-error.log;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
listen 443 ssl http2;
|
||||||
|
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name ollama.corbia.net;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/security.conf.inc;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ssl_certificate /etc/yunohost/certs/ollama.corbia.net/crt.pem;
|
||||||
|
|
||||||
|
ssl_certificate_key /etc/yunohost/certs/ollama.corbia.net/key.pem;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# OCSP settings
|
||||||
|
|
||||||
|
ssl_stapling on;
|
||||||
|
|
||||||
|
ssl_stapling_verify on;
|
||||||
|
|
||||||
|
ssl_trusted_certificate /etc/yunohost/certs/ollama.corbia.net/crt.pem;
|
||||||
|
|
||||||
|
resolver 1.1.1.1 9.9.9.9 valid=300s;
|
||||||
|
|
||||||
|
resolver_timeout 5s;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
location ^~ '/.well-known/autoconfig/mail/' {
|
||||||
|
|
||||||
|
alias /var/www/.well-known/ollama.corbia.net/autoconfig/mail/;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
access_by_lua_file /usr/share/ssowat/access.lua;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/ollama.corbia.net.d/*.conf;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/yunohost_sso.conf.inc;
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/yunohost_admin.conf.inc;
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/yunohost_api.conf.inc;
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/yunohost_http_errors.conf.inc;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
access_log /var/log/nginx/ollama.corbia.net-access.log;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/ollama.corbia.net-error.log;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
/etc/nginx/conf.d/ollama.corbia.net.d/redirect__14.conf
|
||||||
|
|
||||||
|
```
|
||||||
|
#sub_path_only rewrite ^/$ / permanent;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
proxy_pass http://127.0.0.1:11434;
|
||||||
|
|
||||||
|
proxy_redirect off;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
|
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Include SSOWAT user panel.
|
||||||
|
|
||||||
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
|
||||||
|
more_clear_input_headers 'Accept-Encoding';
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue