From 6b94fc75f1904a737869867b108e123da49e7db4 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 14 Sep 2024 00:37:55 +0200 Subject: [PATCH] vault backup: 2024-09-14 00:37:55 Affected files: .obsidian/workspace.json Untitled 2.md --- .obsidian/workspace.json | 24 +++-- Untitled 2.md | 204 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 222 insertions(+), 6 deletions(-) create mode 100644 Untitled 2.md diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 50d91f9..3e7372f 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -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" diff --git a/Untitled 2.md b/Untitled 2.md new file mode 100644 index 0000000..ea11584 --- /dev/null +++ b/Untitled 2.md @@ -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'; + +} +```