Если кто-то сможет помочь с кодом, то буду благодарен)
upstream php {
server unix:/run/php/php7.4-fpm.sock;
}
server {
#listen *:443 ssl;
#ssl_certificate /etc/letsencrypt/live/domain.com-0001/fullchain.pem;
#ssl_certificate_key /etc/letsencrypt/live/domain.com-0001/privkey.pem;
#ssl_trusted_certificate /etc/letsencrypt/live/domain.com-0001/chain.pem;
listen *:80;
server_name domain.com *.domain.com;
access_log /var/log/nginx/domain.com-access.log;
error_log /var/log/nginx/domain.com-error.log;
client_max_body_size 5000m;
client_header_buffer_size 5m;
large_client_header_buffers 16 5m;
error_page 502 /502.html;
# add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Content-Type' 'application/json';
location /socket.io/ {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_send_timeout 86400;
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
# New
proxy_connect_timeout 15s;
proxy_buffers 512 256M;
proxy_buffer_size 256M;
}
location /video/ {
rewrite /video/(.*) /$1 break;
proxy_pass http://127.0.0.1:3001;
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5000m;
# add_header Access-Control-Allow-Origin *;
}
# calls-service
location /c-api/ {
rewrite /c-api/(.*) /$1 break;
proxy_pass http://127.0.0.1:3005;
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5000m;
}
location /chats/ {
rewrite /chats/(.*) /$1 break;
proxy_pass http://127.0.0.1:5000;
proxy_pass_header Server;
#proxy_pass_header Content-Type;
#proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header Accept '*/*';
#proxy_set_header Accept-Encoding '';
#add_header Content-Type application/json;
#default_type application/json;
client_max_body_size 5000m;
}
location /pay/ {
rewrite /pay/(.*) /$1 break;
proxy_pass http://127.0.0.1:3000;
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5000m;
}
location /pay-moneta/ {
rewrite /pay-moneta/(.*) /$1 break;
proxy_pass http://127.0.0.1:4000/;
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5000m;
}
# viddev static
#location /viddev/(*\.(js|css|jpg)) {
# try_files $uri =404;
# rewrite /viddev/(.*) /viddev/$1 break;
#}
location / {
try_files $uri $uri/ @rewrite;
index index.php index.html;
add_header Access-Control-Allow-Origin *;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location @proxy {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_pass https://domain.com;
proxy_redirect off;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_ignore_client_abort on;
fastcgi_param SERVER_NAME $http_host;
client_max_body_size 5000m;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
location /epaf23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/16 redirect;
}
location /aepa23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/25 redirect;
}
location /org23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/26 redirect;
}
location /kedo23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/27 redirect;
}
location /cxbf23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/28 redirect;
}
location /cbsf23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/29 redirect;
}
location /icf23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/30 redirect;
}
location /int23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/31 redirect;
}
location /materials/cef23 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/32 redirect;
}
location /materials/elf23 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/33 redirect;
}
location /cb23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/34 redirect;
}
location /ut23/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/35 redirect;
}
location /materials/ipoteka {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/36 redirect;
}
location /materials/fincome {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/37 redirect;
}
location /materials/tb {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/38 redirect;
}
location /materials/nmforce23 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/39 redirect;
}
location /materials/prforce23 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/40 redirect;
}
location /materials/wow-service2022/ {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/41 redirect;
}
location /materials/contact-center2022 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/42 redirect;
}
location /materials/abp22 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/43 redirect;
}
location /materials/crmforce22 {
rewrite ^(.*)$ https://auditoriumcg.domain.com/materials/44 redirect;
}
location = /500.html {
root /usr/share/nginx/html/;
}
set $need_redirect "0";
if ($host ~* ^www\.(.*)$) {
set $need_redirect "1";
}
if ($request_uri ~* "well-known") {
set $need_redirect "0";
}
if ( $need_redirect ~ "1") {
return 301 https://$server_name$request_uri;
}
}
#server {
# listen *:80;
# return 301 https://$server_name$request_uri; # enforce https
# server_name domain.com;
#}
Я же написал.
Мне нужен полноценный github клиент с actions и остальным функционалом, для работы с локальными репозиториями.