vault backup: 2024-09-14 00:37:55

Affected files:
.obsidian/workspace.json
Untitled 2.md
This commit is contained in:
ed barz 2024-09-14 00:37:55 +02:00
parent f1ef81fd63
commit 6b94fc75f1
2 changed files with 222 additions and 6 deletions

View File

@ -126,9 +126,21 @@
"source": false
}
}
},
{
"id": "7370a1fe7a97f402",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Untitled 2.md",
"mode": "source",
"source": false
}
}
}
],
"currentTab": 9
"currentTab": 10
}
],
"direction": "vertical"
@ -194,7 +206,7 @@
"state": {
"type": "backlink",
"state": {
"file": "nocoDB.md",
"file": "Untitled 2.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -211,7 +223,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "nocoDB.md",
"file": "Untitled 2.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -234,7 +246,7 @@
"state": {
"type": "outline",
"state": {
"file": "nocoDB.md"
"file": "Untitled 2.md"
}
}
},
@ -277,8 +289,9 @@
"copilot:Copilot Chat": false
}
},
"active": "6cc8d6e8f519ab5e",
"active": "7370a1fe7a97f402",
"lastOpenFiles": [
"Untitled 2.md",
"nocoDB.md",
"Untitled 1.md",
"Alpine - How to....md",
@ -304,7 +317,6 @@
"Linux.md",
"Rust.md",
"YuNoHost.md",
"Taylor Swift - the 1.md",
"Untitled",
"Taylor Swift",
"GNU"

204
Untitled 2.md Normal file
View File

@ -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';
}
```