Boş Kategori

.Net 7.0 AutoMapper List T MaxInteger[T] Fix.
Cofig add c.Internal().MethodMappingEnabled = false;

Version="3.2.2" => Version="[3.2.2]"

Nginx WS {websocket} Proyx

| Ağustos 27, 2019
 server {
        listen       80;
listen       [::]:80;
        server_name  localhost;
client_max_body_size 0;
        #charset koi8-r;

        #access_log  /nginx/logs/host.access.log  main;

#ssl on;
ssl_session_cache  builtin:1000  shared:SSL:10m;
ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
        large_client_header_buffers 4 32k;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";



if ($host = '{domain}.{extension}') {
proxy_pass http://{IP Adress}:80;

}
}

Nginx SSL Attach

| Ağustos 18, 2019
server {
listen         *:443 ssl;
server_name   {domain}.{extension};
ssl_certificate     /nginx/ssl/{CRT File Name}.crt; 
ssl_certificate_key /nginx/ssl/{Key File Name}.key;
large_client_header_buffers 4 32k;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";


proxy_pass https://{IP Adress}:443;

}
}

Nginx Startup Scheduler

| Ağustos 18, 2019
@ECHO OFF
REM Start Nginx
tasklist /FI "IMAGENAME eq nginx.exe" 2>NUL | find /I /N "nginx.exe">NUL
IF NOT "%ERRORLEVEL%"=="0" (
   REM Nginx is NOT running, so start it
   c:
   cd \nginx
   start nginx.exe
   ECHO Nginx started.
) else (
   ECHO Nginx is already running.
)

Nextcloud Move Data Directory

| Ağustos 18, 2019

/var/snap/nextcloud/current/nextcloud/config/config.php

 'datadirectory' => '/media/my/new/data',

Open Terminal

 $ sudo snap disable nextcloud
 $ sudo mv /var/snap/nextcloud/common/nextcloud/data /media/my/new/data
 $ sudo snap enable nextcloud

Your data directory is invalid
Ensure there is a file called “.ocdata” in the root of the data directory.

sudo snap connect nextcloud:removable-media