diff --git a/backups/nginx/20250924-180551.tar.gz b/backups/nginx/20250924-180551.tar.gz deleted file mode 100644 index 5785dff..0000000 Binary files a/backups/nginx/20250924-180551.tar.gz and /dev/null differ diff --git a/backups/nginx/20250924-180551/local_etc_nginx/conf.d/default.conf b/backups/nginx/20250924-180551/local_etc_nginx/conf.d/default.conf deleted file mode 100755 index ff2ced6..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/conf.d/default.conf +++ /dev/null @@ -1,44 +0,0 @@ -server { - listen 80; - server_name localhost; - - #access_log /var/log/nginx/host.access.log main; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - } - - #error_page 404 /404.html; - - # redirect server error pages to the static page /50x.html - # - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - - # proxy the PHP scripts to Apache listening on 127.0.0.1:80 - # - #location ~ \.php$ { - # proxy_pass http://127.0.0.1; - #} - - # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 - # - #location ~ \.php$ { - # root html; - # fastcgi_pass 127.0.0.1:9000; - # fastcgi_index index.php; - # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; - # include fastcgi_params; - #} - - # deny access to .htaccess files, if Apache's document root - # concurs with nginx's one - # - #location ~ /\.ht { - # deny all; - #} -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/fastcgi.conf b/backups/nginx/20250924-180551/local_etc_nginx/fastcgi.conf deleted file mode 100755 index d53a628..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/fastcgi.conf +++ /dev/null @@ -1,27 +0,0 @@ - -fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; -fastcgi_param QUERY_STRING $query_string; -fastcgi_param REQUEST_METHOD $request_method; -fastcgi_param CONTENT_TYPE $content_type; -fastcgi_param CONTENT_LENGTH $content_length; - -fastcgi_param SCRIPT_NAME $fastcgi_script_name; -fastcgi_param REQUEST_URI $request_uri; -fastcgi_param DOCUMENT_URI $document_uri; -fastcgi_param DOCUMENT_ROOT $document_root; -fastcgi_param SERVER_PROTOCOL $server_protocol; -fastcgi_param REQUEST_SCHEME $scheme; -fastcgi_param HTTPS $https if_not_empty; - -fastcgi_param GATEWAY_INTERFACE CGI/1.1; -fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; - -fastcgi_param REMOTE_ADDR $remote_addr; -fastcgi_param REMOTE_PORT $remote_port; -fastcgi_param REMOTE_USER $remote_user; -fastcgi_param SERVER_ADDR $server_addr; -fastcgi_param SERVER_PORT $server_port; -fastcgi_param SERVER_NAME $server_name; - -# PHP only, required if PHP was built with --enable-force-cgi-redirect -fastcgi_param REDIRECT_STATUS 200; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/fastcgi_params b/backups/nginx/20250924-180551/local_etc_nginx/fastcgi_params deleted file mode 100755 index 28decb9..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/fastcgi_params +++ /dev/null @@ -1,25 +0,0 @@ - -fastcgi_param QUERY_STRING $query_string; -fastcgi_param REQUEST_METHOD $request_method; -fastcgi_param CONTENT_TYPE $content_type; -fastcgi_param CONTENT_LENGTH $content_length; - -fastcgi_param SCRIPT_NAME $fastcgi_script_name; -fastcgi_param REQUEST_URI $request_uri; -fastcgi_param DOCUMENT_URI $document_uri; -fastcgi_param DOCUMENT_ROOT $document_root; -fastcgi_param SERVER_PROTOCOL $server_protocol; -fastcgi_param REQUEST_SCHEME $scheme; -fastcgi_param HTTPS $https if_not_empty; - -fastcgi_param GATEWAY_INTERFACE CGI/1.1; -fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; - -fastcgi_param REMOTE_ADDR $remote_addr; -fastcgi_param REMOTE_PORT $remote_port; -fastcgi_param SERVER_ADDR $server_addr; -fastcgi_param SERVER_PORT $server_port; -fastcgi_param SERVER_NAME $server_name; - -# PHP only, required if PHP was built with --enable-force-cgi-redirect -fastcgi_param REDIRECT_STATUS 200; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/koi-utf b/backups/nginx/20250924-180551/local_etc_nginx/koi-utf deleted file mode 100755 index e7974ff..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/koi-utf +++ /dev/null @@ -1,109 +0,0 @@ - -# This map is not a full koi8-r <> utf8 map: it does not contain -# box-drawing and some other characters. Besides this map contains -# several koi8-u and Byelorussian letters which are not in koi8-r. -# If you need a full and standard map, use contrib/unicode2nginx/koi-utf -# map instead. - -charset_map koi8-r utf-8 { - - 80 E282AC ; # euro - - 95 E280A2 ; # bullet - - 9A C2A0 ; #   - - 9E C2B7 ; # · - - A3 D191 ; # small yo - A4 D194 ; # small Ukrainian ye - - A6 D196 ; # small Ukrainian i - A7 D197 ; # small Ukrainian yi - - AD D291 ; # small Ukrainian soft g - AE D19E ; # small Byelorussian short u - - B0 C2B0 ; # ° - - B3 D081 ; # capital YO - B4 D084 ; # capital Ukrainian YE - - B6 D086 ; # capital Ukrainian I - B7 D087 ; # capital Ukrainian YI - - B9 E28496 ; # numero sign - - BD D290 ; # capital Ukrainian soft G - BE D18E ; # capital Byelorussian short U - - BF C2A9 ; # (C) - - C0 D18E ; # small yu - C1 D0B0 ; # small a - C2 D0B1 ; # small b - C3 D186 ; # small ts - C4 D0B4 ; # small d - C5 D0B5 ; # small ye - C6 D184 ; # small f - C7 D0B3 ; # small g - C8 D185 ; # small kh - C9 D0B8 ; # small i - CA D0B9 ; # small j - CB D0BA ; # small k - CC D0BB ; # small l - CD D0BC ; # small m - CE D0BD ; # small n - CF D0BE ; # small o - - D0 D0BF ; # small p - D1 D18F ; # small ya - D2 D180 ; # small r - D3 D181 ; # small s - D4 D182 ; # small t - D5 D183 ; # small u - D6 D0B6 ; # small zh - D7 D0B2 ; # small v - D8 D18C ; # small soft sign - D9 D18B ; # small y - DA D0B7 ; # small z - DB D188 ; # small sh - DC D18D ; # small e - DD D189 ; # small shch - DE D187 ; # small ch - DF D18A ; # small hard sign - - E0 D0AE ; # capital YU - E1 D090 ; # capital A - E2 D091 ; # capital B - E3 D0A6 ; # capital TS - E4 D094 ; # capital D - E5 D095 ; # capital YE - E6 D0A4 ; # capital F - E7 D093 ; # capital G - E8 D0A5 ; # capital KH - E9 D098 ; # capital I - EA D099 ; # capital J - EB D09A ; # capital K - EC D09B ; # capital L - ED D09C ; # capital M - EE D09D ; # capital N - EF D09E ; # capital O - - F0 D09F ; # capital P - F1 D0AF ; # capital YA - F2 D0A0 ; # capital R - F3 D0A1 ; # capital S - F4 D0A2 ; # capital T - F5 D0A3 ; # capital U - F6 D096 ; # capital ZH - F7 D092 ; # capital V - F8 D0AC ; # capital soft sign - F9 D0AB ; # capital Y - FA D097 ; # capital Z - FB D0A8 ; # capital SH - FC D0AD ; # capital E - FD D0A9 ; # capital SHCH - FE D0A7 ; # capital CH - FF D0AA ; # capital hard sign -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/koi-win b/backups/nginx/20250924-180551/local_etc_nginx/koi-win deleted file mode 100755 index 72afabe..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/koi-win +++ /dev/null @@ -1,103 +0,0 @@ - -charset_map koi8-r windows-1251 { - - 80 88 ; # euro - - 95 95 ; # bullet - - 9A A0 ; #   - - 9E B7 ; # · - - A3 B8 ; # small yo - A4 BA ; # small Ukrainian ye - - A6 B3 ; # small Ukrainian i - A7 BF ; # small Ukrainian yi - - AD B4 ; # small Ukrainian soft g - AE A2 ; # small Byelorussian short u - - B0 B0 ; # ° - - B3 A8 ; # capital YO - B4 AA ; # capital Ukrainian YE - - B6 B2 ; # capital Ukrainian I - B7 AF ; # capital Ukrainian YI - - B9 B9 ; # numero sign - - BD A5 ; # capital Ukrainian soft G - BE A1 ; # capital Byelorussian short U - - BF A9 ; # (C) - - C0 FE ; # small yu - C1 E0 ; # small a - C2 E1 ; # small b - C3 F6 ; # small ts - C4 E4 ; # small d - C5 E5 ; # small ye - C6 F4 ; # small f - C7 E3 ; # small g - C8 F5 ; # small kh - C9 E8 ; # small i - CA E9 ; # small j - CB EA ; # small k - CC EB ; # small l - CD EC ; # small m - CE ED ; # small n - CF EE ; # small o - - D0 EF ; # small p - D1 FF ; # small ya - D2 F0 ; # small r - D3 F1 ; # small s - D4 F2 ; # small t - D5 F3 ; # small u - D6 E6 ; # small zh - D7 E2 ; # small v - D8 FC ; # small soft sign - D9 FB ; # small y - DA E7 ; # small z - DB F8 ; # small sh - DC FD ; # small e - DD F9 ; # small shch - DE F7 ; # small ch - DF FA ; # small hard sign - - E0 DE ; # capital YU - E1 C0 ; # capital A - E2 C1 ; # capital B - E3 D6 ; # capital TS - E4 C4 ; # capital D - E5 C5 ; # capital YE - E6 D4 ; # capital F - E7 C3 ; # capital G - E8 D5 ; # capital KH - E9 C8 ; # capital I - EA C9 ; # capital J - EB CA ; # capital K - EC CB ; # capital L - ED CC ; # capital M - EE CD ; # capital N - EF CE ; # capital O - - F0 CF ; # capital P - F1 DF ; # capital YA - F2 D0 ; # capital R - F3 D1 ; # capital S - F4 D2 ; # capital T - F5 D3 ; # capital U - F6 C6 ; # capital ZH - F7 C2 ; # capital V - F8 DC ; # capital soft sign - F9 DB ; # capital Y - FA C7 ; # capital Z - FB D8 ; # capital SH - FC DD ; # capital E - FD D9 ; # capital SHCH - FE D7 ; # capital CH - FF DA ; # capital hard sign -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/mime.types b/backups/nginx/20250924-180551/local_etc_nginx/mime.types deleted file mode 100755 index 1c00d70..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/mime.types +++ /dev/null @@ -1,99 +0,0 @@ - -types { - text/html html htm shtml; - text/css css; - text/xml xml; - image/gif gif; - image/jpeg jpeg jpg; - application/javascript js; - application/atom+xml atom; - application/rss+xml rss; - - text/mathml mml; - text/plain txt; - text/vnd.sun.j2me.app-descriptor jad; - text/vnd.wap.wml wml; - text/x-component htc; - - image/avif avif; - image/png png; - image/svg+xml svg svgz; - image/tiff tif tiff; - image/vnd.wap.wbmp wbmp; - image/webp webp; - image/x-icon ico; - image/x-jng jng; - image/x-ms-bmp bmp; - - font/woff woff; - font/woff2 woff2; - - application/java-archive jar war ear; - application/json json; - application/mac-binhex40 hqx; - application/msword doc; - application/pdf pdf; - application/postscript ps eps ai; - application/rtf rtf; - application/vnd.apple.mpegurl m3u8; - application/vnd.google-earth.kml+xml kml; - application/vnd.google-earth.kmz kmz; - application/vnd.ms-excel xls; - application/vnd.ms-fontobject eot; - application/vnd.ms-powerpoint ppt; - application/vnd.oasis.opendocument.graphics odg; - application/vnd.oasis.opendocument.presentation odp; - application/vnd.oasis.opendocument.spreadsheet ods; - application/vnd.oasis.opendocument.text odt; - application/vnd.openxmlformats-officedocument.presentationml.presentation - pptx; - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - xlsx; - application/vnd.openxmlformats-officedocument.wordprocessingml.document - docx; - application/vnd.wap.wmlc wmlc; - application/wasm wasm; - application/x-7z-compressed 7z; - application/x-cocoa cco; - application/x-java-archive-diff jardiff; - application/x-java-jnlp-file jnlp; - application/x-makeself run; - application/x-perl pl pm; - application/x-pilot prc pdb; - application/x-rar-compressed rar; - application/x-redhat-package-manager rpm; - application/x-sea sea; - application/x-shockwave-flash swf; - application/x-stuffit sit; - application/x-tcl tcl tk; - application/x-x509-ca-cert der pem crt; - application/x-xpinstall xpi; - application/xhtml+xml xhtml; - application/xspf+xml xspf; - application/zip zip; - - application/octet-stream bin exe dll; - application/octet-stream deb; - application/octet-stream dmg; - application/octet-stream iso img; - application/octet-stream msi msp msm; - - audio/midi mid midi kar; - audio/mpeg mp3; - audio/ogg ogg; - audio/x-m4a m4a; - audio/x-realaudio ra; - - video/3gpp 3gpp 3gp; - video/mp2t ts; - video/mp4 mp4; - video/mpeg mpeg mpg; - video/quicktime mov; - video/webm webm; - video/x-flv flv; - video/x-m4v m4v; - video/x-mng mng; - video/x-ms-asf asx asf; - video/x-ms-wmv wmv; - video/x-msvideo avi; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules b/backups/nginx/20250924-180551/local_etc_nginx/modules deleted file mode 120000 index 4b9b33f..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/nginx/modules \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-geoip.conf.removed b/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-geoip.conf.removed deleted file mode 120000 index 390fab2..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-geoip.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-http-geoip.conf \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-image-filter.conf.removed b/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-image-filter.conf.removed deleted file mode 120000 index fa27cd3..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-image-filter.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-http-image-filter.conf \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-xslt-filter.conf.removed b/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-xslt-filter.conf.removed deleted file mode 120000 index 51d7ca7..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-http-xslt-filter.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-http-xslt-filter.conf \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-mail.conf.removed b/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-mail.conf.removed deleted file mode 120000 index baa6ea9..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-mail.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-mail.conf \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-stream.conf.removed b/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-stream.conf.removed deleted file mode 120000 index 7f65cc5..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/50-mod-stream.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-stream.conf \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/70-mod-stream-geoip.conf.removed b/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/70-mod-stream-geoip.conf.removed deleted file mode 120000 index 4acbe4f..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/modules-enabled/70-mod-stream-geoip.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-stream-geoip.conf \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf b/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf deleted file mode 100755 index 622f1c2..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf +++ /dev/null @@ -1,34 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -include /etc/nginx/stream.d/*.conf; - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151031 b/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151031 deleted file mode 100755 index 4c85b8f..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151031 +++ /dev/null @@ -1,33 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151432 b/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151432 deleted file mode 100755 index 622f1c2..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151432 +++ /dev/null @@ -1,34 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -include /etc/nginx/stream.d/*.conf; - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151838 b/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151838 deleted file mode 100755 index 536e53e..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/nginx.conf.bak-2025-09-23-151838 +++ /dev/null @@ -1,35 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -include /etc/nginx/stream.d/*.conf; -include /etc/nginx/stream.d/*.conf; - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/proxy_params b/backups/nginx/20250924-180551/local_etc_nginx/proxy_params deleted file mode 100755 index df75bc5..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/proxy_params +++ /dev/null @@ -1,4 +0,0 @@ -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_set_header X-Forwarded-Proto $scheme; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/scgi_params b/backups/nginx/20250924-180551/local_etc_nginx/scgi_params deleted file mode 100755 index 6d4ce4f..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/scgi_params +++ /dev/null @@ -1,17 +0,0 @@ - -scgi_param REQUEST_METHOD $request_method; -scgi_param REQUEST_URI $request_uri; -scgi_param QUERY_STRING $query_string; -scgi_param CONTENT_TYPE $content_type; - -scgi_param DOCUMENT_URI $document_uri; -scgi_param DOCUMENT_ROOT $document_root; -scgi_param SCGI 1; -scgi_param SERVER_PROTOCOL $server_protocol; -scgi_param REQUEST_SCHEME $scheme; -scgi_param HTTPS $https if_not_empty; - -scgi_param REMOTE_ADDR $remote_addr; -scgi_param REMOTE_PORT $remote_port; -scgi_param SERVER_PORT $server_port; -scgi_param SERVER_NAME $server_name; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/demo.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/demo.4nkweb.com deleted file mode 100755 index d91b819..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/demo.4nkweb.com +++ /dev/null @@ -1,100 +0,0 @@ - -server { - listen 443 ssl; - server_name demo.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/demo.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/demo.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3003; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws { - proxy_pass http://127.0.0.1:8090/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket -# proxy_set_header Connection "Upgrade"; - proxy_redirect off; - } - - location /ws/ { - proxy_pass http://127.0.0.1:8090/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket -# proxy_set_header Connection "Upgrade"; - proxy_redirect off; - } - - location /signer/ { - proxy_pass http://localhost:9090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - - proxy_pass http://localhost:8081/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /blindbit/ { - proxy_pass http://localhost:8000/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /back/ { - proxy_pass http://localhost:8081/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } -} - -server { - listen 80; - server_name demo.4nkweb.com; - - return 301 https://$host$request_uri; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev1.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev1.4nkweb.com deleted file mode 100755 index ca1dd66..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev1.4nkweb.com +++ /dev/null @@ -1,60 +0,0 @@ -server { - listen 443 ssl; - server_name dev1.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/dev1.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev1.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3002; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - ssl_certificate /etc/letsencrypt/live/dev1.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev1.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = dev1.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev1.4nkweb.com; - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev2.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev2.4nkweb.com deleted file mode 100755 index b7c6e0e..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev2.4nkweb.com +++ /dev/null @@ -1,60 +0,0 @@ -server { - listen 443 ssl; - server_name dev2.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/demo.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/demo.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3003; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - ssl_certificate /etc/letsencrypt/live/dev2.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev2.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = dev2.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev2.4nkweb.com; - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com deleted file mode 100755 index 040d5e4..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com +++ /dev/null @@ -1,162 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - # Callback IdNot -> backend, avec CORS dynamique et masquage des en-têtes upstream - location = /idnot/callback { - # Masquer les en-têtes CORS envoyés par l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - # Masquer les en-têtes CORS de l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095706 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095706 deleted file mode 100755 index e1969d1..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095706 +++ /dev/null @@ -1,105 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location = /idnot/callback {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095909 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095909 deleted file mode 100755 index e1969d1..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095909 +++ /dev/null @@ -1,105 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location = /idnot/callback {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-100249 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-100249 deleted file mode 100755 index e1969d1..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-100249 +++ /dev/null @@ -1,105 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location = /idnot/callback {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214746 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214746 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214758 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214758 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214802 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214802 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214824 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214824 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215020 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215020 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215027 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215027 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215117 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215117 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215123 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215123 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215806 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215806 deleted file mode 100755 index fe12ee9..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215806 +++ /dev/null @@ -1,107 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization,Content-Type,Accept" always; - add_header Access-Control-Max-Age 600; - return 204; - } - - proxy_pass http://127.0.0.1:8091; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - add_header Access-Control-Allow-Origin "http://local.lecoffreio.4nkweb:3000" always ; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization,Content-Type,Accept,X-Requested-With" always; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; # managed by Certbot - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/lecoffreio-dev2.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/lecoffreio-dev2.4nkweb.com deleted file mode 100755 index b5d85df..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/lecoffreio-dev2.4nkweb.com +++ /dev/null @@ -1,37 +0,0 @@ -server { - listen 443 ssl; - server_name lecoffreio-dev2.4nkweb.com; - -# ssl_certificate /etc/letsencrypt/live/lecoffreio.4nkweb.com/fullchain.pem; -# ssl_certificate_key /etc/letsencrypt/live/lecoffreio.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - - location / { - proxy_pass http://localhost:3006; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - ssl_certificate /etc/letsencrypt/live/lecoffreio-dev2.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/lecoffreio-dev2.4nkweb.com/privkey.pem; # managed by Certbot - -} - -server { - if ($host = lecoffreio-dev2.4nkweb.com) { - return 301 https://$host$request_uri; - } - - listen 80; - server_name lecoffreio-dev2.4nkweb.com; - - return 301 https://$host$request_uri; - - - - -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/lecoffreio.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/lecoffreio.4nkweb.com deleted file mode 100755 index 8027807..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/lecoffreio.4nkweb.com +++ /dev/null @@ -1,65 +0,0 @@ -server { - listen 443 ssl; - server_name lecoffreio.4nkweb.com; - -# ssl_certificate /etc/letsencrypt/live/lecoffreio.4nkweb.com/fullchain.pem; -# ssl_certificate_key /etc/letsencrypt/live/lecoffreio.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - - location / { - proxy_pass http://localhost:3000; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /api/ { - proxy_pass http://127.0.0.1:8081/api/; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - ssl_certificate /etc/letsencrypt/live/lecoffreio.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/lecoffreio.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = lecoffreio.4nkweb.com) { - return 301 https://$host$request_uri; - } - - listen 80; - server_name lecoffreio.4nkweb.com; - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl deleted file mode 100755 index a5438f1..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 3443 ssl; - listen 3443; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151115 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151115 deleted file mode 100755 index b934255..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151115 +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 3443 ssl; - listen 3000; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151628 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151628 deleted file mode 100755 index b934255..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151628 +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 3443 ssl; - listen 3000; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-20250923 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-20250923 deleted file mode 100755 index 7fc20a2..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-20250923 +++ /dev/null @@ -1,20 +0,0 @@ -server { - listen 3000 ssl; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - -server { - listen 3000 ssl; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - return 301 https://dev3.4nkweb.com/idnot/callback; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak.2025-09-23-150811 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak.2025-09-23-150811 deleted file mode 100755 index ed17237..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak.2025-09-23-150811 +++ /dev/null @@ -1,12 +0,0 @@ -server { - listen 3000 ssl; - listen 3000; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak deleted file mode 100755 index d024619..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151054 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151054 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151054 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151523 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151523 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151523 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151529 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151529 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151529 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-20250923 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-20250923 deleted file mode 100755 index 3817dbf..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-20250923 +++ /dev/null @@ -1,13 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - -server { - listen 3000; - server_name local.4nkweb.com; - return 301 https://dev3.4nkweb.com/idnot/callback; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak.2025-09-23-150734 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak.2025-09-23-150734 deleted file mode 100755 index 75c5d08..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak.2025-09-23-150734 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com deleted file mode 100755 index a61ac3b..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223714 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223714 deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223714 +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223836 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223836 deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223836 +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-224059 b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-224059 deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-224059 +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/relay235.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-available/relay235.4nkweb.com deleted file mode 100755 index 5e65719..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-available/relay235.4nkweb.com +++ /dev/null @@ -1,28 +0,0 @@ -upstream backend { - server 127.0.0.1:3000; -} - -server { - listen 443 ssl; - server_name relay235.4nkweb.com; - client_max_body_size 200M; - access_log /var/log/nginx/rocket.chat.access.log; - error_log /var/log/nginx/rocket.chat.error.log; - ssl_certificate /etc/letsencrypt/live/relay235.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/relay235.4nkweb.com/privkey.pem; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - - location / { - proxy_pass http://backend; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - 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_set_header X-Forwarded-Proto https; - proxy_set_header X-Nginx-Proxy true; - proxy_redirect off; - } -} - diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/demo.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/demo.4nkweb.com deleted file mode 120000 index b429eff..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/demo.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/demo.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev1.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev1.4nkweb.com deleted file mode 120000 index cf74f1b..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev1.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/dev1.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev2.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev2.4nkweb.com deleted file mode 120000 index a790e77..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev2.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/dev2.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev3.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev3.4nkweb.com deleted file mode 100755 index 040d5e4..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/dev3.4nkweb.com +++ /dev/null @@ -1,162 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - # Callback IdNot -> backend, avec CORS dynamique et masquage des en-têtes upstream - location = /idnot/callback { - # Masquer les en-têtes CORS envoyés par l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - # Masquer les en-têtes CORS de l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/lecoffreio-dev2.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/lecoffreio-dev2.4nkweb.com deleted file mode 120000 index b20a8e5..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/lecoffreio-dev2.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/lecoffreio-dev2.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/lecoffreio.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/lecoffreio.4nkweb.com deleted file mode 120000 index f1c479a..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/lecoffreio.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/lecoffreio.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/local.4nkweb.com-3001 b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/local.4nkweb.com-3001 deleted file mode 120000 index 60f11ed..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/local.4nkweb.com-3001 +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/local.4nkweb.com-3000 \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/local.lecoffreio.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/local.lecoffreio.4nkweb.com deleted file mode 100755 index a61ac3b..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/local.lecoffreio.4nkweb.com +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/relay235.4nkweb.com b/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/relay235.4nkweb.com deleted file mode 120000 index 08ab0de..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/sites-enabled/relay235.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/relay235.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-180551/local_etc_nginx/snippets/fastcgi-php.conf b/backups/nginx/20250924-180551/local_etc_nginx/snippets/fastcgi-php.conf deleted file mode 100755 index 467a9e7..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/snippets/fastcgi-php.conf +++ /dev/null @@ -1,13 +0,0 @@ -# regex to split $uri to $fastcgi_script_name and $fastcgi_path -fastcgi_split_path_info ^(.+?\.php)(/.*)$; - -# Check that the PHP script exists before passing it -try_files $fastcgi_script_name =404; - -# Bypass the fact that try_files resets $fastcgi_path_info -# see: http://trac.nginx.org/nginx/ticket/321 -set $path_info $fastcgi_path_info; -fastcgi_param PATH_INFO $path_info; - -fastcgi_index index.php; -include fastcgi.conf; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/snippets/snakeoil.conf b/backups/nginx/20250924-180551/local_etc_nginx/snippets/snakeoil.conf deleted file mode 100755 index ad26c3e..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/snippets/snakeoil.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Self signed certificates generated by the ssl-cert package -# Don't use them in a production server! - -ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; -ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/stream.d/3000-multiplex.conf b/backups/nginx/20250924-180551/local_etc_nginx/stream.d/3000-multiplex.conf deleted file mode 100644 index 0392232..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/stream.d/3000-multiplex.conf +++ /dev/null @@ -1,11 +0,0 @@ -stream { - map $ssl_preread_protocol $upstream_3000 { - "" 127.0.0.1:3001; # HTTP clair - default 127.0.0.1:3443; # TLS -> HTTPS - } - server { - listen 3000; - proxy_pass $upstream_3000; - ssl_preread on; - } -} diff --git a/backups/nginx/20250924-180551/local_etc_nginx/uwsgi_params b/backups/nginx/20250924-180551/local_etc_nginx/uwsgi_params deleted file mode 100755 index 09c732c..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/uwsgi_params +++ /dev/null @@ -1,17 +0,0 @@ - -uwsgi_param QUERY_STRING $query_string; -uwsgi_param REQUEST_METHOD $request_method; -uwsgi_param CONTENT_TYPE $content_type; -uwsgi_param CONTENT_LENGTH $content_length; - -uwsgi_param REQUEST_URI $request_uri; -uwsgi_param PATH_INFO $document_uri; -uwsgi_param DOCUMENT_ROOT $document_root; -uwsgi_param SERVER_PROTOCOL $server_protocol; -uwsgi_param REQUEST_SCHEME $scheme; -uwsgi_param HTTPS $https if_not_empty; - -uwsgi_param REMOTE_ADDR $remote_addr; -uwsgi_param REMOTE_PORT $remote_port; -uwsgi_param SERVER_PORT $server_port; -uwsgi_param SERVER_NAME $server_name; diff --git a/backups/nginx/20250924-180551/local_etc_nginx/win-utf b/backups/nginx/20250924-180551/local_etc_nginx/win-utf deleted file mode 100755 index 774fd9f..0000000 --- a/backups/nginx/20250924-180551/local_etc_nginx/win-utf +++ /dev/null @@ -1,125 +0,0 @@ -# This map is not a full windows-1251 <> utf8 map: it does not -# contain Serbian and Macedonian letters. If you need a full map, -# use contrib/unicode2nginx/win-utf map instead. - -charset_map windows-1251 utf-8 { - - 82 E2809A; # single low-9 quotation mark - - 84 E2809E; # double low-9 quotation mark - 85 E280A6; # ellipsis - 86 E280A0; # dagger - 87 E280A1; # double dagger - 88 E282AC; # euro - 89 E280B0; # per mille - - 91 E28098; # left single quotation mark - 92 E28099; # right single quotation mark - 93 E2809C; # left double quotation mark - 94 E2809D; # right double quotation mark - 95 E280A2; # bullet - 96 E28093; # en dash - 97 E28094; # em dash - - 99 E284A2; # trade mark sign - - A0 C2A0; #   - A1 D18E; # capital Byelorussian short U - A2 D19E; # small Byelorussian short u - - A4 C2A4; # currency sign - A5 D290; # capital Ukrainian soft G - A6 C2A6; # borken bar - A7 C2A7; # section sign - A8 D081; # capital YO - A9 C2A9; # (C) - AA D084; # capital Ukrainian YE - AB C2AB; # left-pointing double angle quotation mark - AC C2AC; # not sign - AD C2AD; # soft hypen - AE C2AE; # (R) - AF D087; # capital Ukrainian YI - - B0 C2B0; # ° - B1 C2B1; # plus-minus sign - B2 D086; # capital Ukrainian I - B3 D196; # small Ukrainian i - B4 D291; # small Ukrainian soft g - B5 C2B5; # micro sign - B6 C2B6; # pilcrow sign - B7 C2B7; # · - B8 D191; # small yo - B9 E28496; # numero sign - BA D194; # small Ukrainian ye - BB C2BB; # right-pointing double angle quotation mark - - BF D197; # small Ukrainian yi - - C0 D090; # capital A - C1 D091; # capital B - C2 D092; # capital V - C3 D093; # capital G - C4 D094; # capital D - C5 D095; # capital YE - C6 D096; # capital ZH - C7 D097; # capital Z - C8 D098; # capital I - C9 D099; # capital J - CA D09A; # capital K - CB D09B; # capital L - CC D09C; # capital M - CD D09D; # capital N - CE D09E; # capital O - CF D09F; # capital P - - D0 D0A0; # capital R - D1 D0A1; # capital S - D2 D0A2; # capital T - D3 D0A3; # capital U - D4 D0A4; # capital F - D5 D0A5; # capital KH - D6 D0A6; # capital TS - D7 D0A7; # capital CH - D8 D0A8; # capital SH - D9 D0A9; # capital SHCH - DA D0AA; # capital hard sign - DB D0AB; # capital Y - DC D0AC; # capital soft sign - DD D0AD; # capital E - DE D0AE; # capital YU - DF D0AF; # capital YA - - E0 D0B0; # small a - E1 D0B1; # small b - E2 D0B2; # small v - E3 D0B3; # small g - E4 D0B4; # small d - E5 D0B5; # small ye - E6 D0B6; # small zh - E7 D0B7; # small z - E8 D0B8; # small i - E9 D0B9; # small j - EA D0BA; # small k - EB D0BB; # small l - EC D0BC; # small m - ED D0BD; # small n - EE D0BE; # small o - EF D0BF; # small p - - F0 D180; # small r - F1 D181; # small s - F2 D182; # small t - F3 D183; # small u - F4 D184; # small f - F5 D185; # small kh - F6 D186; # small ts - F7 D187; # small ch - F8 D188; # small sh - F9 D189; # small shch - FA D18A; # small hard sign - FB D18B; # small y - FC D18C; # small soft sign - FD D18D; # small e - FE D18E; # small yu - FF D18F; # small ya -} diff --git a/backups/nginx/20250924-180551/project/dev3.4nkweb.com.fixed.conf.b64 b/backups/nginx/20250924-180551/project/dev3.4nkweb.com.fixed.conf.b64 deleted file mode 100644 index 22c9003..0000000 --- a/backups/nginx/20250924-180551/project/dev3.4nkweb.com.fixed.conf.b64 +++ /dev/null @@ -1,45 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin * always; - add_header Access-Control-Allow-Methods GET, diff --git a/backups/nginx/20250924-180551/project/local.4nkweb.com-3000.conf b/backups/nginx/20250924-180551/project/local.4nkweb.com-3000.conf deleted file mode 100644 index a958acd..0000000 --- a/backups/nginx/20250924-180551/project/local.4nkweb.com-3000.conf +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-183251.tar.gz b/backups/nginx/20250924-183251.tar.gz deleted file mode 100644 index b3c2689..0000000 Binary files a/backups/nginx/20250924-183251.tar.gz and /dev/null differ diff --git a/backups/nginx/20250924-183251/local_etc_nginx/conf.d/default.conf b/backups/nginx/20250924-183251/local_etc_nginx/conf.d/default.conf deleted file mode 100755 index ff2ced6..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/conf.d/default.conf +++ /dev/null @@ -1,44 +0,0 @@ -server { - listen 80; - server_name localhost; - - #access_log /var/log/nginx/host.access.log main; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - } - - #error_page 404 /404.html; - - # redirect server error pages to the static page /50x.html - # - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - - # proxy the PHP scripts to Apache listening on 127.0.0.1:80 - # - #location ~ \.php$ { - # proxy_pass http://127.0.0.1; - #} - - # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 - # - #location ~ \.php$ { - # root html; - # fastcgi_pass 127.0.0.1:9000; - # fastcgi_index index.php; - # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; - # include fastcgi_params; - #} - - # deny access to .htaccess files, if Apache's document root - # concurs with nginx's one - # - #location ~ /\.ht { - # deny all; - #} -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/fastcgi.conf b/backups/nginx/20250924-183251/local_etc_nginx/fastcgi.conf deleted file mode 100755 index d53a628..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/fastcgi.conf +++ /dev/null @@ -1,27 +0,0 @@ - -fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; -fastcgi_param QUERY_STRING $query_string; -fastcgi_param REQUEST_METHOD $request_method; -fastcgi_param CONTENT_TYPE $content_type; -fastcgi_param CONTENT_LENGTH $content_length; - -fastcgi_param SCRIPT_NAME $fastcgi_script_name; -fastcgi_param REQUEST_URI $request_uri; -fastcgi_param DOCUMENT_URI $document_uri; -fastcgi_param DOCUMENT_ROOT $document_root; -fastcgi_param SERVER_PROTOCOL $server_protocol; -fastcgi_param REQUEST_SCHEME $scheme; -fastcgi_param HTTPS $https if_not_empty; - -fastcgi_param GATEWAY_INTERFACE CGI/1.1; -fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; - -fastcgi_param REMOTE_ADDR $remote_addr; -fastcgi_param REMOTE_PORT $remote_port; -fastcgi_param REMOTE_USER $remote_user; -fastcgi_param SERVER_ADDR $server_addr; -fastcgi_param SERVER_PORT $server_port; -fastcgi_param SERVER_NAME $server_name; - -# PHP only, required if PHP was built with --enable-force-cgi-redirect -fastcgi_param REDIRECT_STATUS 200; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/fastcgi_params b/backups/nginx/20250924-183251/local_etc_nginx/fastcgi_params deleted file mode 100755 index 28decb9..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/fastcgi_params +++ /dev/null @@ -1,25 +0,0 @@ - -fastcgi_param QUERY_STRING $query_string; -fastcgi_param REQUEST_METHOD $request_method; -fastcgi_param CONTENT_TYPE $content_type; -fastcgi_param CONTENT_LENGTH $content_length; - -fastcgi_param SCRIPT_NAME $fastcgi_script_name; -fastcgi_param REQUEST_URI $request_uri; -fastcgi_param DOCUMENT_URI $document_uri; -fastcgi_param DOCUMENT_ROOT $document_root; -fastcgi_param SERVER_PROTOCOL $server_protocol; -fastcgi_param REQUEST_SCHEME $scheme; -fastcgi_param HTTPS $https if_not_empty; - -fastcgi_param GATEWAY_INTERFACE CGI/1.1; -fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; - -fastcgi_param REMOTE_ADDR $remote_addr; -fastcgi_param REMOTE_PORT $remote_port; -fastcgi_param SERVER_ADDR $server_addr; -fastcgi_param SERVER_PORT $server_port; -fastcgi_param SERVER_NAME $server_name; - -# PHP only, required if PHP was built with --enable-force-cgi-redirect -fastcgi_param REDIRECT_STATUS 200; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/koi-utf b/backups/nginx/20250924-183251/local_etc_nginx/koi-utf deleted file mode 100755 index e7974ff..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/koi-utf +++ /dev/null @@ -1,109 +0,0 @@ - -# This map is not a full koi8-r <> utf8 map: it does not contain -# box-drawing and some other characters. Besides this map contains -# several koi8-u and Byelorussian letters which are not in koi8-r. -# If you need a full and standard map, use contrib/unicode2nginx/koi-utf -# map instead. - -charset_map koi8-r utf-8 { - - 80 E282AC ; # euro - - 95 E280A2 ; # bullet - - 9A C2A0 ; #   - - 9E C2B7 ; # · - - A3 D191 ; # small yo - A4 D194 ; # small Ukrainian ye - - A6 D196 ; # small Ukrainian i - A7 D197 ; # small Ukrainian yi - - AD D291 ; # small Ukrainian soft g - AE D19E ; # small Byelorussian short u - - B0 C2B0 ; # ° - - B3 D081 ; # capital YO - B4 D084 ; # capital Ukrainian YE - - B6 D086 ; # capital Ukrainian I - B7 D087 ; # capital Ukrainian YI - - B9 E28496 ; # numero sign - - BD D290 ; # capital Ukrainian soft G - BE D18E ; # capital Byelorussian short U - - BF C2A9 ; # (C) - - C0 D18E ; # small yu - C1 D0B0 ; # small a - C2 D0B1 ; # small b - C3 D186 ; # small ts - C4 D0B4 ; # small d - C5 D0B5 ; # small ye - C6 D184 ; # small f - C7 D0B3 ; # small g - C8 D185 ; # small kh - C9 D0B8 ; # small i - CA D0B9 ; # small j - CB D0BA ; # small k - CC D0BB ; # small l - CD D0BC ; # small m - CE D0BD ; # small n - CF D0BE ; # small o - - D0 D0BF ; # small p - D1 D18F ; # small ya - D2 D180 ; # small r - D3 D181 ; # small s - D4 D182 ; # small t - D5 D183 ; # small u - D6 D0B6 ; # small zh - D7 D0B2 ; # small v - D8 D18C ; # small soft sign - D9 D18B ; # small y - DA D0B7 ; # small z - DB D188 ; # small sh - DC D18D ; # small e - DD D189 ; # small shch - DE D187 ; # small ch - DF D18A ; # small hard sign - - E0 D0AE ; # capital YU - E1 D090 ; # capital A - E2 D091 ; # capital B - E3 D0A6 ; # capital TS - E4 D094 ; # capital D - E5 D095 ; # capital YE - E6 D0A4 ; # capital F - E7 D093 ; # capital G - E8 D0A5 ; # capital KH - E9 D098 ; # capital I - EA D099 ; # capital J - EB D09A ; # capital K - EC D09B ; # capital L - ED D09C ; # capital M - EE D09D ; # capital N - EF D09E ; # capital O - - F0 D09F ; # capital P - F1 D0AF ; # capital YA - F2 D0A0 ; # capital R - F3 D0A1 ; # capital S - F4 D0A2 ; # capital T - F5 D0A3 ; # capital U - F6 D096 ; # capital ZH - F7 D092 ; # capital V - F8 D0AC ; # capital soft sign - F9 D0AB ; # capital Y - FA D097 ; # capital Z - FB D0A8 ; # capital SH - FC D0AD ; # capital E - FD D0A9 ; # capital SHCH - FE D0A7 ; # capital CH - FF D0AA ; # capital hard sign -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/koi-win b/backups/nginx/20250924-183251/local_etc_nginx/koi-win deleted file mode 100755 index 72afabe..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/koi-win +++ /dev/null @@ -1,103 +0,0 @@ - -charset_map koi8-r windows-1251 { - - 80 88 ; # euro - - 95 95 ; # bullet - - 9A A0 ; #   - - 9E B7 ; # · - - A3 B8 ; # small yo - A4 BA ; # small Ukrainian ye - - A6 B3 ; # small Ukrainian i - A7 BF ; # small Ukrainian yi - - AD B4 ; # small Ukrainian soft g - AE A2 ; # small Byelorussian short u - - B0 B0 ; # ° - - B3 A8 ; # capital YO - B4 AA ; # capital Ukrainian YE - - B6 B2 ; # capital Ukrainian I - B7 AF ; # capital Ukrainian YI - - B9 B9 ; # numero sign - - BD A5 ; # capital Ukrainian soft G - BE A1 ; # capital Byelorussian short U - - BF A9 ; # (C) - - C0 FE ; # small yu - C1 E0 ; # small a - C2 E1 ; # small b - C3 F6 ; # small ts - C4 E4 ; # small d - C5 E5 ; # small ye - C6 F4 ; # small f - C7 E3 ; # small g - C8 F5 ; # small kh - C9 E8 ; # small i - CA E9 ; # small j - CB EA ; # small k - CC EB ; # small l - CD EC ; # small m - CE ED ; # small n - CF EE ; # small o - - D0 EF ; # small p - D1 FF ; # small ya - D2 F0 ; # small r - D3 F1 ; # small s - D4 F2 ; # small t - D5 F3 ; # small u - D6 E6 ; # small zh - D7 E2 ; # small v - D8 FC ; # small soft sign - D9 FB ; # small y - DA E7 ; # small z - DB F8 ; # small sh - DC FD ; # small e - DD F9 ; # small shch - DE F7 ; # small ch - DF FA ; # small hard sign - - E0 DE ; # capital YU - E1 C0 ; # capital A - E2 C1 ; # capital B - E3 D6 ; # capital TS - E4 C4 ; # capital D - E5 C5 ; # capital YE - E6 D4 ; # capital F - E7 C3 ; # capital G - E8 D5 ; # capital KH - E9 C8 ; # capital I - EA C9 ; # capital J - EB CA ; # capital K - EC CB ; # capital L - ED CC ; # capital M - EE CD ; # capital N - EF CE ; # capital O - - F0 CF ; # capital P - F1 DF ; # capital YA - F2 D0 ; # capital R - F3 D1 ; # capital S - F4 D2 ; # capital T - F5 D3 ; # capital U - F6 C6 ; # capital ZH - F7 C2 ; # capital V - F8 DC ; # capital soft sign - F9 DB ; # capital Y - FA C7 ; # capital Z - FB D8 ; # capital SH - FC DD ; # capital E - FD D9 ; # capital SHCH - FE D7 ; # capital CH - FF DA ; # capital hard sign -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/mime.types b/backups/nginx/20250924-183251/local_etc_nginx/mime.types deleted file mode 100755 index 1c00d70..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/mime.types +++ /dev/null @@ -1,99 +0,0 @@ - -types { - text/html html htm shtml; - text/css css; - text/xml xml; - image/gif gif; - image/jpeg jpeg jpg; - application/javascript js; - application/atom+xml atom; - application/rss+xml rss; - - text/mathml mml; - text/plain txt; - text/vnd.sun.j2me.app-descriptor jad; - text/vnd.wap.wml wml; - text/x-component htc; - - image/avif avif; - image/png png; - image/svg+xml svg svgz; - image/tiff tif tiff; - image/vnd.wap.wbmp wbmp; - image/webp webp; - image/x-icon ico; - image/x-jng jng; - image/x-ms-bmp bmp; - - font/woff woff; - font/woff2 woff2; - - application/java-archive jar war ear; - application/json json; - application/mac-binhex40 hqx; - application/msword doc; - application/pdf pdf; - application/postscript ps eps ai; - application/rtf rtf; - application/vnd.apple.mpegurl m3u8; - application/vnd.google-earth.kml+xml kml; - application/vnd.google-earth.kmz kmz; - application/vnd.ms-excel xls; - application/vnd.ms-fontobject eot; - application/vnd.ms-powerpoint ppt; - application/vnd.oasis.opendocument.graphics odg; - application/vnd.oasis.opendocument.presentation odp; - application/vnd.oasis.opendocument.spreadsheet ods; - application/vnd.oasis.opendocument.text odt; - application/vnd.openxmlformats-officedocument.presentationml.presentation - pptx; - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - xlsx; - application/vnd.openxmlformats-officedocument.wordprocessingml.document - docx; - application/vnd.wap.wmlc wmlc; - application/wasm wasm; - application/x-7z-compressed 7z; - application/x-cocoa cco; - application/x-java-archive-diff jardiff; - application/x-java-jnlp-file jnlp; - application/x-makeself run; - application/x-perl pl pm; - application/x-pilot prc pdb; - application/x-rar-compressed rar; - application/x-redhat-package-manager rpm; - application/x-sea sea; - application/x-shockwave-flash swf; - application/x-stuffit sit; - application/x-tcl tcl tk; - application/x-x509-ca-cert der pem crt; - application/x-xpinstall xpi; - application/xhtml+xml xhtml; - application/xspf+xml xspf; - application/zip zip; - - application/octet-stream bin exe dll; - application/octet-stream deb; - application/octet-stream dmg; - application/octet-stream iso img; - application/octet-stream msi msp msm; - - audio/midi mid midi kar; - audio/mpeg mp3; - audio/ogg ogg; - audio/x-m4a m4a; - audio/x-realaudio ra; - - video/3gpp 3gpp 3gp; - video/mp2t ts; - video/mp4 mp4; - video/mpeg mpeg mpg; - video/quicktime mov; - video/webm webm; - video/x-flv flv; - video/x-m4v m4v; - video/x-mng mng; - video/x-ms-asf asx asf; - video/x-ms-wmv wmv; - video/x-msvideo avi; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules b/backups/nginx/20250924-183251/local_etc_nginx/modules deleted file mode 120000 index 4b9b33f..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/nginx/modules \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-geoip.conf.removed b/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-geoip.conf.removed deleted file mode 120000 index 390fab2..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-geoip.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-http-geoip.conf \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-image-filter.conf.removed b/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-image-filter.conf.removed deleted file mode 120000 index fa27cd3..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-image-filter.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-http-image-filter.conf \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-xslt-filter.conf.removed b/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-xslt-filter.conf.removed deleted file mode 120000 index 51d7ca7..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-http-xslt-filter.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-http-xslt-filter.conf \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-mail.conf.removed b/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-mail.conf.removed deleted file mode 120000 index baa6ea9..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-mail.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-mail.conf \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-stream.conf.removed b/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-stream.conf.removed deleted file mode 120000 index 7f65cc5..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/50-mod-stream.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-stream.conf \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/70-mod-stream-geoip.conf.removed b/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/70-mod-stream-geoip.conf.removed deleted file mode 120000 index 4acbe4f..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/modules-enabled/70-mod-stream-geoip.conf.removed +++ /dev/null @@ -1 +0,0 @@ -/usr/share/nginx/modules-available/mod-stream-geoip.conf \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf b/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf deleted file mode 100755 index 622f1c2..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf +++ /dev/null @@ -1,34 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -include /etc/nginx/stream.d/*.conf; - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151031 b/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151031 deleted file mode 100755 index 4c85b8f..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151031 +++ /dev/null @@ -1,33 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151432 b/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151432 deleted file mode 100755 index 622f1c2..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151432 +++ /dev/null @@ -1,34 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -include /etc/nginx/stream.d/*.conf; - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151838 b/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151838 deleted file mode 100755 index 536e53e..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/nginx.conf.bak-2025-09-23-151838 +++ /dev/null @@ -1,35 +0,0 @@ - -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -include /etc/nginx/stream.d/*.conf; -include /etc/nginx/stream.d/*.conf; - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - - #gzip on; - - include /etc/nginx/conf.d/*.conf; - include /etc/nginx/sites-enabled/*; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/proxy_params b/backups/nginx/20250924-183251/local_etc_nginx/proxy_params deleted file mode 100755 index df75bc5..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/proxy_params +++ /dev/null @@ -1,4 +0,0 @@ -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_set_header X-Forwarded-Proto $scheme; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/scgi_params b/backups/nginx/20250924-183251/local_etc_nginx/scgi_params deleted file mode 100755 index 6d4ce4f..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/scgi_params +++ /dev/null @@ -1,17 +0,0 @@ - -scgi_param REQUEST_METHOD $request_method; -scgi_param REQUEST_URI $request_uri; -scgi_param QUERY_STRING $query_string; -scgi_param CONTENT_TYPE $content_type; - -scgi_param DOCUMENT_URI $document_uri; -scgi_param DOCUMENT_ROOT $document_root; -scgi_param SCGI 1; -scgi_param SERVER_PROTOCOL $server_protocol; -scgi_param REQUEST_SCHEME $scheme; -scgi_param HTTPS $https if_not_empty; - -scgi_param REMOTE_ADDR $remote_addr; -scgi_param REMOTE_PORT $remote_port; -scgi_param SERVER_PORT $server_port; -scgi_param SERVER_NAME $server_name; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/demo.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/demo.4nkweb.com deleted file mode 100755 index d91b819..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/demo.4nkweb.com +++ /dev/null @@ -1,100 +0,0 @@ - -server { - listen 443 ssl; - server_name demo.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/demo.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/demo.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3003; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws { - proxy_pass http://127.0.0.1:8090/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket -# proxy_set_header Connection "Upgrade"; - proxy_redirect off; - } - - location /ws/ { - proxy_pass http://127.0.0.1:8090/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket -# proxy_set_header Connection "Upgrade"; - proxy_redirect off; - } - - location /signer/ { - proxy_pass http://localhost:9090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - - proxy_pass http://localhost:8081/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /blindbit/ { - proxy_pass http://localhost:8000/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /back/ { - proxy_pass http://localhost:8081/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } -} - -server { - listen 80; - server_name demo.4nkweb.com; - - return 301 https://$host$request_uri; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev1.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev1.4nkweb.com deleted file mode 100755 index ca1dd66..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev1.4nkweb.com +++ /dev/null @@ -1,60 +0,0 @@ -server { - listen 443 ssl; - server_name dev1.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/dev1.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev1.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3002; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - ssl_certificate /etc/letsencrypt/live/dev1.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev1.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = dev1.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev1.4nkweb.com; - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev2.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev2.4nkweb.com deleted file mode 100755 index b7c6e0e..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev2.4nkweb.com +++ /dev/null @@ -1,60 +0,0 @@ -server { - listen 443 ssl; - server_name dev2.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/demo.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/demo.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3003; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; # Keep connection open for WebSocket - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - ssl_certificate /etc/letsencrypt/live/dev2.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev2.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = dev2.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev2.4nkweb.com; - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com deleted file mode 100755 index 040d5e4..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com +++ /dev/null @@ -1,162 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - # Callback IdNot -> backend, avec CORS dynamique et masquage des en-têtes upstream - location = /idnot/callback { - # Masquer les en-têtes CORS envoyés par l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - # Masquer les en-têtes CORS de l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095706 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095706 deleted file mode 100755 index e1969d1..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095706 +++ /dev/null @@ -1,105 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location = /idnot/callback {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095909 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095909 deleted file mode 100755 index e1969d1..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-095909 +++ /dev/null @@ -1,105 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location = /idnot/callback {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-100249 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-100249 deleted file mode 100755 index e1969d1..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.2025-09-23-100249 +++ /dev/null @@ -1,105 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - location = /idnot/callback {\n proxy_pass http://127.0.0.1:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214746 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214746 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214758 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214758 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214802 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214802 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214824 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-214824 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215020 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215020 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215027 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215027 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215117 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215117 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215123 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215123 deleted file mode 100755 index e69de29..0000000 diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215806 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215806 deleted file mode 100755 index fe12ee9..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/dev3.4nkweb.com.bak.20250922-215806 +++ /dev/null @@ -1,107 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization,Content-Type,Accept" always; - add_header Access-Control-Max-Age 600; - return 204; - } - - proxy_pass http://127.0.0.1:8091; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - add_header Access-Control-Allow-Origin "http://local.lecoffreio.4nkweb:3000" always ; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization,Content-Type,Accept,X-Requested-With" always; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; # managed by Certbot - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - - return 301 https://$host$request_uri; - - -} - - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/lecoffreio-dev2.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/lecoffreio-dev2.4nkweb.com deleted file mode 100755 index b5d85df..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/lecoffreio-dev2.4nkweb.com +++ /dev/null @@ -1,37 +0,0 @@ -server { - listen 443 ssl; - server_name lecoffreio-dev2.4nkweb.com; - -# ssl_certificate /etc/letsencrypt/live/lecoffreio.4nkweb.com/fullchain.pem; -# ssl_certificate_key /etc/letsencrypt/live/lecoffreio.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - - location / { - proxy_pass http://localhost:3006; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - ssl_certificate /etc/letsencrypt/live/lecoffreio-dev2.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/lecoffreio-dev2.4nkweb.com/privkey.pem; # managed by Certbot - -} - -server { - if ($host = lecoffreio-dev2.4nkweb.com) { - return 301 https://$host$request_uri; - } - - listen 80; - server_name lecoffreio-dev2.4nkweb.com; - - return 301 https://$host$request_uri; - - - - -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/lecoffreio.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/lecoffreio.4nkweb.com deleted file mode 100755 index 8027807..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/lecoffreio.4nkweb.com +++ /dev/null @@ -1,65 +0,0 @@ -server { - listen 443 ssl; - server_name lecoffreio.4nkweb.com; - -# ssl_certificate /etc/letsencrypt/live/lecoffreio.4nkweb.com/fullchain.pem; -# ssl_certificate_key /etc/letsencrypt/live/lecoffreio.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - - location / { - proxy_pass http://localhost:3000; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /api/ { - proxy_pass http://127.0.0.1:8081/api/; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - ssl_certificate /etc/letsencrypt/live/lecoffreio.4nkweb.com/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/lecoffreio.4nkweb.com/privkey.pem; # managed by Certbot -} - -server { - if ($host = lecoffreio.4nkweb.com) { - return 301 https://$host$request_uri; - } - - listen 80; - server_name lecoffreio.4nkweb.com; - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl deleted file mode 100755 index a5438f1..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 3443 ssl; - listen 3443; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151115 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151115 deleted file mode 100755 index b934255..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151115 +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 3443 ssl; - listen 3000; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151628 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151628 deleted file mode 100755 index b934255..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-2025-09-23-151628 +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 3443 ssl; - listen 3000; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-20250923 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-20250923 deleted file mode 100755 index 7fc20a2..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak-20250923 +++ /dev/null @@ -1,20 +0,0 @@ -server { - listen 3000 ssl; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - -server { - listen 3000 ssl; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - return 301 https://dev3.4nkweb.com/idnot/callback; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak.2025-09-23-150811 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak.2025-09-23-150811 deleted file mode 100755 index ed17237..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000-ssl.bak.2025-09-23-150811 +++ /dev/null @@ -1,12 +0,0 @@ -server { - listen 3000 ssl; - listen 3000; - server_name local.4nkweb.com; - - ssl_certificate /etc/letsencrypt/live/local.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/local.4nkweb.com/privkey.pem; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak deleted file mode 100755 index d024619..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151054 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151054 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151054 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151523 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151523 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151523 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151529 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151529 deleted file mode 100755 index 762c681..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-2025-09-23-151529 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3001; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-20250923 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-20250923 deleted file mode 100755 index 3817dbf..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak-20250923 +++ /dev/null @@ -1,13 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - -server { - listen 3000; - server_name local.4nkweb.com; - return 301 https://dev3.4nkweb.com/idnot/callback; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak.2025-09-23-150734 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak.2025-09-23-150734 deleted file mode 100755 index 75c5d08..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.4nkweb.com-3000.bak.2025-09-23-150734 +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 3000; - server_name local.4nkweb.com; - - # Redirige vers le callback en conservant intégralement la query (code + state) - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com deleted file mode 100755 index a61ac3b..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223714 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223714 deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223714 +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223836 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223836 deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-223836 +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-224059 b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-224059 deleted file mode 100755 index 122cd0a..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/local.lecoffreio.4nkweb.com.bak.20250922-224059 +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev4.4nkweb.com/lecoffre$request_uri; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/relay235.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-available/relay235.4nkweb.com deleted file mode 100755 index 5e65719..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-available/relay235.4nkweb.com +++ /dev/null @@ -1,28 +0,0 @@ -upstream backend { - server 127.0.0.1:3000; -} - -server { - listen 443 ssl; - server_name relay235.4nkweb.com; - client_max_body_size 200M; - access_log /var/log/nginx/rocket.chat.access.log; - error_log /var/log/nginx/rocket.chat.error.log; - ssl_certificate /etc/letsencrypt/live/relay235.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/relay235.4nkweb.com/privkey.pem; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - - location / { - proxy_pass http://backend; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - 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_set_header X-Forwarded-Proto https; - proxy_set_header X-Nginx-Proxy true; - proxy_redirect off; - } -} - diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/demo.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/demo.4nkweb.com deleted file mode 120000 index b429eff..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/demo.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/demo.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev1.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev1.4nkweb.com deleted file mode 120000 index cf74f1b..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev1.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/dev1.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev2.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev2.4nkweb.com deleted file mode 120000 index a790e77..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev2.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/dev2.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev3.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev3.4nkweb.com deleted file mode 100755 index 040d5e4..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/dev3.4nkweb.com +++ /dev/null @@ -1,162 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - # Callback IdNot -> backend, avec CORS dynamique et masquage des en-têtes upstream - location = /idnot/callback { - # Masquer les en-têtes CORS envoyés par l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - # Masquer les en-têtes CORS de l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, local.4nkweb.com:3000, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/lecoffreio-dev2.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/lecoffreio-dev2.4nkweb.com deleted file mode 120000 index b20a8e5..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/lecoffreio-dev2.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/lecoffreio-dev2.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/lecoffreio.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/lecoffreio.4nkweb.com deleted file mode 120000 index f1c479a..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/lecoffreio.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/lecoffreio.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/local.4nkweb.com-3001 b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/local.4nkweb.com-3001 deleted file mode 120000 index 60f11ed..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/local.4nkweb.com-3001 +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/local.4nkweb.com-3000 \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/local.lecoffreio.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/local.lecoffreio.4nkweb.com deleted file mode 100755 index a61ac3b..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/local.lecoffreio.4nkweb.com +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/relay235.4nkweb.com b/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/relay235.4nkweb.com deleted file mode 120000 index 08ab0de..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/sites-enabled/relay235.4nkweb.com +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/relay235.4nkweb.com \ No newline at end of file diff --git a/backups/nginx/20250924-183251/local_etc_nginx/snippets/fastcgi-php.conf b/backups/nginx/20250924-183251/local_etc_nginx/snippets/fastcgi-php.conf deleted file mode 100755 index 467a9e7..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/snippets/fastcgi-php.conf +++ /dev/null @@ -1,13 +0,0 @@ -# regex to split $uri to $fastcgi_script_name and $fastcgi_path -fastcgi_split_path_info ^(.+?\.php)(/.*)$; - -# Check that the PHP script exists before passing it -try_files $fastcgi_script_name =404; - -# Bypass the fact that try_files resets $fastcgi_path_info -# see: http://trac.nginx.org/nginx/ticket/321 -set $path_info $fastcgi_path_info; -fastcgi_param PATH_INFO $path_info; - -fastcgi_index index.php; -include fastcgi.conf; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/snippets/snakeoil.conf b/backups/nginx/20250924-183251/local_etc_nginx/snippets/snakeoil.conf deleted file mode 100755 index ad26c3e..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/snippets/snakeoil.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Self signed certificates generated by the ssl-cert package -# Don't use them in a production server! - -ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; -ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/stream.d/3000-multiplex.conf b/backups/nginx/20250924-183251/local_etc_nginx/stream.d/3000-multiplex.conf deleted file mode 100644 index 0392232..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/stream.d/3000-multiplex.conf +++ /dev/null @@ -1,11 +0,0 @@ -stream { - map $ssl_preread_protocol $upstream_3000 { - "" 127.0.0.1:3001; # HTTP clair - default 127.0.0.1:3443; # TLS -> HTTPS - } - server { - listen 3000; - proxy_pass $upstream_3000; - ssl_preread on; - } -} diff --git a/backups/nginx/20250924-183251/local_etc_nginx/uwsgi_params b/backups/nginx/20250924-183251/local_etc_nginx/uwsgi_params deleted file mode 100755 index 09c732c..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/uwsgi_params +++ /dev/null @@ -1,17 +0,0 @@ - -uwsgi_param QUERY_STRING $query_string; -uwsgi_param REQUEST_METHOD $request_method; -uwsgi_param CONTENT_TYPE $content_type; -uwsgi_param CONTENT_LENGTH $content_length; - -uwsgi_param REQUEST_URI $request_uri; -uwsgi_param PATH_INFO $document_uri; -uwsgi_param DOCUMENT_ROOT $document_root; -uwsgi_param SERVER_PROTOCOL $server_protocol; -uwsgi_param REQUEST_SCHEME $scheme; -uwsgi_param HTTPS $https if_not_empty; - -uwsgi_param REMOTE_ADDR $remote_addr; -uwsgi_param REMOTE_PORT $remote_port; -uwsgi_param SERVER_PORT $server_port; -uwsgi_param SERVER_NAME $server_name; diff --git a/backups/nginx/20250924-183251/local_etc_nginx/win-utf b/backups/nginx/20250924-183251/local_etc_nginx/win-utf deleted file mode 100755 index 774fd9f..0000000 --- a/backups/nginx/20250924-183251/local_etc_nginx/win-utf +++ /dev/null @@ -1,125 +0,0 @@ -# This map is not a full windows-1251 <> utf8 map: it does not -# contain Serbian and Macedonian letters. If you need a full map, -# use contrib/unicode2nginx/win-utf map instead. - -charset_map windows-1251 utf-8 { - - 82 E2809A; # single low-9 quotation mark - - 84 E2809E; # double low-9 quotation mark - 85 E280A6; # ellipsis - 86 E280A0; # dagger - 87 E280A1; # double dagger - 88 E282AC; # euro - 89 E280B0; # per mille - - 91 E28098; # left single quotation mark - 92 E28099; # right single quotation mark - 93 E2809C; # left double quotation mark - 94 E2809D; # right double quotation mark - 95 E280A2; # bullet - 96 E28093; # en dash - 97 E28094; # em dash - - 99 E284A2; # trade mark sign - - A0 C2A0; #   - A1 D18E; # capital Byelorussian short U - A2 D19E; # small Byelorussian short u - - A4 C2A4; # currency sign - A5 D290; # capital Ukrainian soft G - A6 C2A6; # borken bar - A7 C2A7; # section sign - A8 D081; # capital YO - A9 C2A9; # (C) - AA D084; # capital Ukrainian YE - AB C2AB; # left-pointing double angle quotation mark - AC C2AC; # not sign - AD C2AD; # soft hypen - AE C2AE; # (R) - AF D087; # capital Ukrainian YI - - B0 C2B0; # ° - B1 C2B1; # plus-minus sign - B2 D086; # capital Ukrainian I - B3 D196; # small Ukrainian i - B4 D291; # small Ukrainian soft g - B5 C2B5; # micro sign - B6 C2B6; # pilcrow sign - B7 C2B7; # · - B8 D191; # small yo - B9 E28496; # numero sign - BA D194; # small Ukrainian ye - BB C2BB; # right-pointing double angle quotation mark - - BF D197; # small Ukrainian yi - - C0 D090; # capital A - C1 D091; # capital B - C2 D092; # capital V - C3 D093; # capital G - C4 D094; # capital D - C5 D095; # capital YE - C6 D096; # capital ZH - C7 D097; # capital Z - C8 D098; # capital I - C9 D099; # capital J - CA D09A; # capital K - CB D09B; # capital L - CC D09C; # capital M - CD D09D; # capital N - CE D09E; # capital O - CF D09F; # capital P - - D0 D0A0; # capital R - D1 D0A1; # capital S - D2 D0A2; # capital T - D3 D0A3; # capital U - D4 D0A4; # capital F - D5 D0A5; # capital KH - D6 D0A6; # capital TS - D7 D0A7; # capital CH - D8 D0A8; # capital SH - D9 D0A9; # capital SHCH - DA D0AA; # capital hard sign - DB D0AB; # capital Y - DC D0AC; # capital soft sign - DD D0AD; # capital E - DE D0AE; # capital YU - DF D0AF; # capital YA - - E0 D0B0; # small a - E1 D0B1; # small b - E2 D0B2; # small v - E3 D0B3; # small g - E4 D0B4; # small d - E5 D0B5; # small ye - E6 D0B6; # small zh - E7 D0B7; # small z - E8 D0B8; # small i - E9 D0B9; # small j - EA D0BA; # small k - EB D0BB; # small l - EC D0BC; # small m - ED D0BD; # small n - EE D0BE; # small o - EF D0BF; # small p - - F0 D180; # small r - F1 D181; # small s - F2 D182; # small t - F3 D183; # small u - F4 D184; # small f - F5 D185; # small kh - F6 D186; # small ts - F7 D187; # small ch - F8 D188; # small sh - F9 D189; # small shch - FA D18A; # small hard sign - FB D18B; # small y - FC D18C; # small soft sign - FD D18D; # small e - FE D18E; # small yu - FF D18F; # small ya -} diff --git a/backups/nginx/20250924-183251/project/dev3.4nkweb.com.conf b/backups/nginx/20250924-183251/project/dev3.4nkweb.com.conf deleted file mode 100644 index 269884f..0000000 --- a/backups/nginx/20250924-183251/project/dev3.4nkweb.com.conf +++ /dev/null @@ -1,162 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - - # Callback IdNot -> backend, avec CORS dynamique et masquage des en-têtes upstream - location = /idnot/callback { - # Masquer les en-têtes CORS envoyés par l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, lecoffreio.4nkweb.com, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - # Masquer les en-têtes CORS de l'upstream (Express) - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # CORS dynamique: autorise dev4, lecoffreio.4nkweb.com, localhost:3000 et sous-domaines *.4nkweb.com - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.4nkweb\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - # Préflight OPTIONS - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - # En-têtes CORS pour les autres méthodes - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/project/dev3.4nkweb.com.fixed.conf b/backups/nginx/20250924-183251/project/dev3.4nkweb.com.fixed.conf deleted file mode 100644 index 0f3b18f..0000000 --- a/backups/nginx/20250924-183251/project/dev3.4nkweb.com.fixed.conf +++ /dev/null @@ -1,176 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - # Hide upstream CORS headers - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # Dynamic CORS allowlist - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.(4nkweb|4nkdev)\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - add_header 'Access-Control-Max-Age' 86400; - add_header 'Content-Length' 0; - add_header 'Content-Type' 'text/plain'; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; - - rewrite ^/storage(/.*)$ $1 break; - proxy_pass http://localhost:8080; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location ^~ /api/ { - # Hide upstream CORS headers - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Credentials; - proxy_hide_header Access-Control-Allow-Headers; - proxy_hide_header Access-Control-Allow-Methods; - - # Dynamic CORS allowlist - set $cors_origin ""; - if ($http_origin ~* ^(https://dev4\.4nkweb\.com|http://local\.(4nkweb|4nkdev)\.com:3000|http://localhost:3000|https://.*\.4nkweb\.com)$) { - set $cors_origin $http_origin; - } - - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - return 204; - } - - add_header Access-Control-Allow-Origin $cors_origin always; - add_header Access-Control-Allow-Credentials "true" always; - add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; - add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location @handle_502 { - internal; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always; - add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept, X-Requested-With" always; - return 502; - } - -} - -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} -server { - if ($host = dev3.4nkweb.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - listen 80; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - return 301 https://$host$request_uri; - - -} diff --git a/backups/nginx/20250924-183251/project/dev3.4nkweb.com.fixed.conf.b64 b/backups/nginx/20250924-183251/project/dev3.4nkweb.com.fixed.conf.b64 deleted file mode 100644 index 22c9003..0000000 --- a/backups/nginx/20250924-183251/project/dev3.4nkweb.com.fixed.conf.b64 +++ /dev/null @@ -1,45 +0,0 @@ -server { - listen 443 ssl; - server_name dev3.4nkweb.com; - location = /idnot/callback { - proxy_pass http://127.0.0.1:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/dev3.4nkweb.com/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers HIGH:!aNULL:!MD5; - # Redirection des requêtes HTTP normales vers Vite - location / { - proxy_pass http://localhost:3004; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - } - - location /ws/ { - proxy_pass http://localhost:8090; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-NginX-Proxy true; - - proxy_read_timeout 86400; - proxy_set_header Connection "Upgrade"; - } - - location /storage/ { - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin * always; - add_header Access-Control-Allow-Methods GET, diff --git a/backups/nginx/20250924-183251/project/local.lecoffreio.4nkweb.com.conf b/backups/nginx/20250924-183251/project/local.lecoffreio.4nkweb.com.conf deleted file mode 100644 index a61ac3b..0000000 --- a/backups/nginx/20250924-183251/project/local.lecoffreio.4nkweb.com.conf +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 80; - server_name local.lecoffreio.4nkweb.com; - - # Redirige vers le front final en conservant chemin + query - return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args; -} diff --git a/backups/nginx/20250924-223552.tar.gz b/backups/nginx/20250924-223552.tar.gz new file mode 100644 index 0000000..edbd022 Binary files /dev/null and b/backups/nginx/20250924-223552.tar.gz differ diff --git a/backups/nginx/20250925-091648/TIMESTAMP b/backups/nginx/20250925-091648/TIMESTAMP new file mode 100644 index 0000000..aebf2b3 --- /dev/null +++ b/backups/nginx/20250925-091648/TIMESTAMP @@ -0,0 +1 @@ +20250925-091648 diff --git a/backups/nginx/20250925-091648/http_flows.md b/backups/nginx/20250925-091648/http_flows.md new file mode 100644 index 0000000..7d1437c --- /dev/null +++ b/backups/nginx/20250925-091648/http_flows.md @@ -0,0 +1,14 @@ +# HTTP flows summary + +## Nginx (dev3.4nkweb.com) proxy_pass lines +40: proxy_pass http://127.0.0.1:8080; +56: proxy_pass http://localhost:3004; +65: proxy_pass http://localhost:8090; +96: proxy_pass http://localhost:8080; +134: proxy_pass http://127.0.0.1:8080; +164: proxy_pass http://127.0.0.1:8080; + +## Express routes (src/routes/index.ts) +14:router.post('/api/v1/idnot/state', StateHandlers.createState); +15:router.get('/idnot/callback', IdNotCallbackHandlers.callback); +16:router.get('/authorized-client', IdNotCallbackHandlers.callback); diff --git a/backups/nginx/20250925-091648/open_ports.txt b/backups/nginx/20250925-091648/open_ports.txt new file mode 100644 index 0000000..3669d08 --- /dev/null +++ b/backups/nginx/20250925-091648/open_ports.txt @@ -0,0 +1,32 @@ +Netid State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess +udp UNCONN 0 0 0.0.0.0:53517 0.0.0.0:* uid:110 ino:2402 sk:1 cgroup:/system.slice/avahi-daemon.service <-> +udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* uid:110 ino:2400 sk:3 cgroup:/system.slice/avahi-daemon.service <-> +udp UNCONN 0 0 0.0.0.0:631 0.0.0.0:* ino:797771415 sk:800b cgroup:/system.slice/cups-browsed.service <-> +udp UNCONN 0 0 [::]:5353 [::]:* uid:110 ino:2401 sk:5 cgroup:/system.slice/avahi-daemon.service v6only:1 <-> +udp UNCONN 0 0 [::]:38236 [::]:* uid:110 ino:2403 sk:6 cgroup:/system.slice/avahi-daemon.service v6only:1 <-> +tcp LISTEN 0 128 127.0.0.1:8334 0.0.0.0:* users:(("bitcoind",pid=7833,fd=28)) uid:1000 ino:50510 sk:1001 cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/bitcoind.service <-> +tcp LISTEN 0 511 0.0.0.0:9999 0.0.0.0:* users:(("next-server (v1",pid=3820889,fd=25)) uid:1000 ino:203086523 sk:2022 cgroup:/user.slice/user-1000.slice/session-23834.scope <-> +tcp LISTEN 0 511 0.0.0.0:80 0.0.0.0:* ino:202194510 sk:301b cgroup:/system.slice/nginx.service <-> +tcp LISTEN 0 128 0.0.0.0:8081 0.0.0.0:* users:(("sdk_storage",pid=2737523,fd=7)) uid:1000 ino:65916025 sk:6008 cgroup:/user.slice/user-1000.slice/session-14225.scope <-> +tcp LISTEN 0 511 127.0.0.1:39059 0.0.0.0:* users:(("node",pid=4134789,fd=19)) uid:1000 ino:1510269034 sk:800c cgroup:/user.slice/user-1000.slice/session-24057.scope <-> +tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* ino:16803 sk:1004 cgroup:/system.slice/ssh.service <-> +tcp LISTEN 0 128 127.0.0.1:631 0.0.0.0:* ino:797011799 sk:800d cgroup:/system.slice/cups.service <-> +tcp LISTEN 0 511 0.0.0.0:3000 0.0.0.0:* ino:202194509 sk:301c cgroup:/system.slice/nginx.service <-> +tcp LISTEN 0 200 127.0.0.1:5432 0.0.0.0:* uid:118 ino:54762578 sk:7001 cgroup:/system.slice/system-postgresql.slice/postgresql@17-main.service <-> +tcp LISTEN 0 4096 127.0.0.1:9050 0.0.0.0:* ino:425 sk:100a cgroup:/system.slice/system-tor.slice/tor@default.service <-> +tcp LISTEN 0 511 0.0.0.0:3003 0.0.0.0:* users:(("node",pid=3903828,fd=27)) uid:1000 ino:222145527 sk:3021 cgroup:/user.slice/user-1000.slice/session-15425.scope <-> +tcp LISTEN 0 511 0.0.0.0:443 0.0.0.0:* ino:202194511 sk:301e cgroup:/system.slice/nginx.service <-> +tcp LISTEN 0 4096 127.0.0.1:9051 0.0.0.0:* ino:426 sk:100c cgroup:/system.slice/system-tor.slice/tor@default.service <-> +tcp LISTEN 0 128 0.0.0.0:38332 0.0.0.0:* users:(("bitcoind",pid=7865,fd=12)) uid:1000 ino:44367 sk:100e cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/signet.service <-> +tcp LISTEN 0 128 0.0.0.0:38333 0.0.0.0:* users:(("bitcoind",pid=7865,fd=38)) uid:1000 ino:53290 sk:100f cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/signet.service <-> +tcp LISTEN 0 128 127.0.0.1:38334 0.0.0.0:* users:(("bitcoind",pid=7865,fd=40)) uid:1000 ino:53291 sk:1010 cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/signet.service <-> +tcp LISTEN 0 4096 127.0.0.1:8000 0.0.0.0:* users:(("blindbit",pid=1891796,fd=59)) uid:1000 ino:54710950 sk:5007 cgroup:/user.slice/user-1000.slice/session-6209.scope <-> +tcp LISTEN 0 100 127.0.0.1:29000 0.0.0.0:* users:(("bitcoind",pid=7865,fd=19)) uid:1000 ino:41720 sk:1012 cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/signet.service <-> +tcp LISTEN 0 511 127.0.0.1:33961 0.0.0.0:* users:(("node",pid=4134751,fd=19)) uid:1000 ino:1510289396 sk:800e cgroup:/user.slice/user-1000.slice/session-24057.scope <-> +tcp LISTEN 0 128 0.0.0.0:8332 0.0.0.0:* users:(("bitcoind",pid=7833,fd=12)) uid:1000 ino:50506 sk:1013 cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/bitcoind.service <-> +tcp LISTEN 0 128 0.0.0.0:8333 0.0.0.0:* users:(("bitcoind",pid=7833,fd=26)) uid:1000 ino:50509 sk:1014 cgroup:/user.slice/user-1000.slice/user@1000.service/app.slice/bitcoind.service <-> +tcp LISTEN 0 511 *:8080 *:* users:(("node",pid=4095406,fd=26)) uid:1000 ino:653166690 sk:800f cgroup:/user.slice/user-1000.slice/session-23878.scope v6only:0 <-> +tcp LISTEN 0 128 [::]:22 [::]:* ino:16805 sk:1015 cgroup:/system.slice/ssh.service v6only:1 <-> +tcp LISTEN 0 128 [::1]:631 [::]:* ino:797011798 sk:8010 cgroup:/system.slice/cups.service v6only:1 <-> +tcp LISTEN 0 200 [::1]:5432 [::]:* uid:118 ino:54762577 sk:7002 cgroup:/system.slice/system-postgresql.slice/postgresql@17-main.service v6only:1 <-> +tcp LISTEN 0 511 *:9090 *:* users:(("node",pid=3257267,fd=30)) uid:1000 ino:190954586 sk:2019 cgroup:/user.slice/user-1000.slice/session-23100.scope v6only:0 <-> diff --git a/backups/nginx/20250924-180551/project/dev3.4nkweb.com.conf b/backups/nginx/20250925-091648/project/dev3.4nkweb.com.conf similarity index 89% rename from backups/nginx/20250924-180551/project/dev3.4nkweb.com.conf rename to backups/nginx/20250925-091648/project/dev3.4nkweb.com.conf index 269884f..cc3b1cf 100644 --- a/backups/nginx/20250924-180551/project/dev3.4nkweb.com.conf +++ b/backups/nginx/20250925-091648/project/dev3.4nkweb.com.conf @@ -1,4 +1,7 @@ server { + # Logs Nginx spécifiques à ce vhost + access_log /var/log/nginx/dev3.4nkweb.com.access.log main; + error_log /var/log/nginx/dev3.4nkweb.com.error.log warn; listen 443 ssl; server_name dev3.4nkweb.com; @@ -26,18 +29,20 @@ server { return 204; } - # En-têtes CORS pour les autres méthodes + # En-têtes CORS pour les autres méthodes add_header Access-Control-Allow-Origin $cors_origin always; add_header Access-Control-Allow-Credentials "true" always; add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; + add_header X-Request-Id $request_id always; proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; } ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; @@ -53,6 +58,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; + proxy_set_header X-Request-Id $request_id; } location /ws/ { @@ -65,6 +71,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-NginX-Proxy true; + proxy_set_header X-Request-Id $request_id; proxy_read_timeout 86400; proxy_set_header Connection "Upgrade"; @@ -91,6 +98,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; + proxy_set_header X-Request-Id $request_id; } location ^~ /api/ { @@ -122,12 +130,13 @@ server { add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - + add_header X-Request-Id $request_id always; proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; } location @handle_502 { @@ -141,6 +150,9 @@ server { } server { + # Logs Nginx spécifiques à ce vhost (HTTP -> redir HTTPS) + access_log /var/log/nginx/dev3.4nkweb.com.access.log main; + error_log /var/log/nginx/dev3.4nkweb.com.error.log warn; if ($host = dev3.4nkweb.com) { return 301 https://$host$request_uri; } # managed by Certbot @@ -148,12 +160,13 @@ server { listen 80; server_name dev3.4nkweb.com; - location = /idnot/callback { + location = /idnot/callback { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; } return 301 https://$host$request_uri; diff --git a/backups/nginx/20250924-180551/project/dev3.4nkweb.com.fixed.conf b/backups/nginx/20250925-091648/project/dev3.4nkweb.com.fixed.conf similarity index 100% rename from backups/nginx/20250924-180551/project/dev3.4nkweb.com.fixed.conf rename to backups/nginx/20250925-091648/project/dev3.4nkweb.com.fixed.conf diff --git a/backups/nginx/20250924-180551/project/local.lecoffreio.4nkweb.com.conf b/backups/nginx/20250925-091648/project/local.lecoffreio.4nkweb.com.conf similarity index 100% rename from backups/nginx/20250924-180551/project/local.lecoffreio.4nkweb.com.conf rename to backups/nginx/20250925-091648/project/local.lecoffreio.4nkweb.com.conf diff --git a/confs/nginx/dev3.4nkweb.com.conf b/confs/nginx/dev3.4nkweb.com.conf index 269884f..cc3b1cf 100644 --- a/confs/nginx/dev3.4nkweb.com.conf +++ b/confs/nginx/dev3.4nkweb.com.conf @@ -1,4 +1,7 @@ server { + # Logs Nginx spécifiques à ce vhost + access_log /var/log/nginx/dev3.4nkweb.com.access.log main; + error_log /var/log/nginx/dev3.4nkweb.com.error.log warn; listen 443 ssl; server_name dev3.4nkweb.com; @@ -26,18 +29,20 @@ server { return 204; } - # En-têtes CORS pour les autres méthodes + # En-têtes CORS pour les autres méthodes add_header Access-Control-Allow-Origin $cors_origin always; add_header Access-Control-Allow-Credentials "true" always; add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; + add_header X-Request-Id $request_id always; proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; } ssl_certificate /etc/letsencrypt/live/dev3.4nkweb.com/fullchain.pem; @@ -53,6 +58,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; + proxy_set_header X-Request-Id $request_id; } location /ws/ { @@ -65,6 +71,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-NginX-Proxy true; + proxy_set_header X-Request-Id $request_id; proxy_read_timeout 86400; proxy_set_header Connection "Upgrade"; @@ -91,6 +98,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; + proxy_set_header X-Request-Id $request_id; } location ^~ /api/ { @@ -122,12 +130,13 @@ server { add_header Access-Control-Allow-Headers "Content-Type, Authorization, x-session-id" always; add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" always; add_header Vary "Origin, Access-Control-Request-Method, Access-Control-Request-Headers" always; - + add_header X-Request-Id $request_id always; proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; } location @handle_502 { @@ -141,6 +150,9 @@ server { } server { + # Logs Nginx spécifiques à ce vhost (HTTP -> redir HTTPS) + access_log /var/log/nginx/dev3.4nkweb.com.access.log main; + error_log /var/log/nginx/dev3.4nkweb.com.error.log warn; if ($host = dev3.4nkweb.com) { return 301 https://$host$request_uri; } # managed by Certbot @@ -148,12 +160,13 @@ server { listen 80; server_name dev3.4nkweb.com; - location = /idnot/callback { + location = /idnot/callback { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; } return 301 https://$host$request_uri; diff --git a/docs/doc_api/.cursorrules b/docs/doc_api/.cursorrules new file mode 100644 index 0000000..6c4380d --- /dev/null +++ b/docs/doc_api/.cursorrules @@ -0,0 +1,165 @@ +# Règles globales Cursor pour les projets + +## Principes généraux +- Lire impérativement le fichier `.cursorrules` au démarrage de chaque session. +- Lire tous les fichiers du dossier `docs/`, le code et les paramètres avant de commencer. +- Poser des questions et proposer des améliorations si nécessaire. +- Ajouter les leçons apprises à ce fichier `.cursorrules`. +- Écrire des documents complets et exhaustifs. +- Respecter strictement les règles de lint du Markdown. +- Préférer toujours un shell **bash** à PowerShell. +- Fermer et relancer le terminal avant chaque utilisation. +- Si le terminal est interrompu, analyser la commande précédente (interruption probablement volontaire). +- Exécuter automatiquement les étapes de résolution de problème. +- Expliquer les commandes complexes avant de les lancer. +- Compiler régulièrement et corriger toutes les erreurs avant de passer à l’étape suivante. +- Tester, documenter, compiler, aligner tag git, changelog et version avant déploiement et push. +- Utiliser `docx2txt` pour lire les fichiers `.docx`. +- Ajouter automatiquement les dépendances et rechercher systématiquement les dernières versions. +- Faire des commandes simples et claires en plusieurs étapes. +- Vérifie toujours tes hypothèses avant de commencer. +- N'oublie jamais qu'après la correction d'un problème, il faut corriger toutes les erreurs qui peuvent en découler. + +## Organisation des fichiers et répertoires +- Scripts regroupés dans `scripts/` +- Configurations regroupées dans `confs/` +- Journaux regroupés dans `logs/` +- Répertoires obligatoires : + - `docs/` : documentation de toute fonctionnalité ajoutée, modifiée, supprimée ou découverte. + - `tests/` : tests liés à toute fonctionnalité ajoutée, modifiée, supprimée ou découverte. +- Remplacer les résumés (`RESUME`) par des mises à jour dans `docs/`. + +## Configuration critique des services +- Mempool du réseau signet : + `https://mempool2.4nkweb.com/fr/docs/api/rest` + +## Développement et sécurité +- Ne jamais committer de clés privées ou secrets. +- Utiliser des variables d’environnement pour les données sensibles. +- Définir correctement les dépendances Docker avec healthchecks. +- Utiliser les URLs de service Docker Compose (`http://service_name:port`). +- Documenter toutes les modifications importantes dans `docs/`. +- Externaliser au maximum les variables d’environnement. +- Toujours utiliser une clé SSH pour cloner les dépôts. +- Monter en version les dépôts au début du travail. +- Pousser les tags docker `ext` via la CI sur `git.4nkweb.com`. +- Corriger systématiquement les problèmes, sans contournement. + +## Scripts (règles critiques) +- Vérifier l’existence d’un script dans `scripts/` avant toute action. +- Utiliser les scripts existants plutôt que des commandes directes. +- Ne jamais créer plusieurs versions ou noms de scripts. +- Améliorer l’existant au lieu de créer des variantes (`startup-v2.sh`, etc.). + +## Images Docker (règles critiques) +- Ajouter systématiquement `apt update && apt upgrade` dans les Dockerfiles. +- Installer en arrière-plan dans les images Docker : + `curl, git, sed, awk, nc, wget, jq, telnet, tee, wscat, ping, npm (dernière version)` +- Appliquer à tous les Dockerfiles et `docker-compose.yml`. +- N'utilise pas les version test ou dev ou ext-dev mais toujours les version ext, relance leur compilation si nécessaire + +## Fichiers de configuration (règles critiques) +- Vérifier l’écriture effective après chaque modification. +- Fichiers concernés : `nginx.conf`, `bitcoin.conf`, `package.json`, `Cargo.toml`. +- Utiliser `cat`, `jq` ou vérificateurs de syntaxe. + +## Connexion au réseau Bitcoin signet +Commande unique et obligatoire : +```bash +docker exec bitcoin-signet bitcoin-cli -signet -rpccookiefile=/home/bitcoin/.bitcoin/signet/.cookie getblockchaininfo +```` + +## Connexion au relay/faucet bootstrap + +* Test via WSS : `wss://dev3.4nkweb.com/ws/` +* Envoi Faucet, réponse attendue avec `NewTx` (tx hex et tweak\_data). + +## Debug + +* Automatiser dans le code toute solution validée. +* Pérenniser les retours d’expérience dans code et paramètres. +* Compléter les tests pour éviter les régressions. + +## Nginx + +* Tous les fichiers dans `conf/ngnix` doivent être mappés avec ceux du serveur. + +## Minage (règles critiques) + +* Toujours valider les adresses utilisées (adresses TSP non reconnues). +* Utiliser uniquement des adresses Bitcoin valides (bech32m). +* Vérifier que le minage génère des blocs avec transactions, pas uniquement coinbase. +* Surveiller les logs du minage pour détecter les erreurs d’adresse. +* Vérifier la propagation via le mempool externe. + +## Mempool externe + +* Utiliser `https://mempool2.4nkweb.com` pour vérifier les transactions. +* Vérifier la synchronisation entre réseau local et externe. + +## Données et modèles + +* Utiliser les fichiers CSV comme base des modèles de données. +* Être attentif aux en-têtes multi-lignes. +* Confirmer la structure comprise et demander définition de toutes les colonnes. +* Corriger automatiquement incohérences de type. + +## Implémentation et architecture + +* Code splitting avec `React.lazy` et `Suspense`. +* Centraliser l’état avec Redux ou Context API. +* Créer une couche d’abstraction pour les services de données. +* Aller systématiquement au bout d’une implémentation. + +## Préparation open source + +Chaque projet doit être prêt pour un dépôt sur `git.4nkweb.com` : + +* Inclure : `LICENSE` (MIT, Apache 2.0 ou GPL), `CONTRIBUTING.md`, `CHANGELOG.md`, `CODE_OF_CONDUCT.md`. +* Aligner documentation et tests avec `4NK_node`. + +## Versioning et documentation + +* Mettre à jour documentation et tests systématiquement. +* Gérer versioning avec changelog. +* Demander validation avant tag. +* Documenter les hypothèses testées dans un REX technique. +* Tester avant tout commit. +* Tester les buildsavant tout tag. + +## Bonnes pratiques de confidentialité et sécurité + +### Docker +- Ne jamais stocker de secrets (clés, tokens, mots de passe) dans les Dockerfiles ou docker-compose.yml. +- Utiliser des fichiers `.env` sécurisés (non commités avec copie en .env.example) pour toutes les variables sensibles. +- Ne pas exécuter de conteneurs avec l’utilisateur root, privilégier un utilisateur dédié. +- Limiter les capacités des conteneurs (option `--cap-drop`) pour réduire la surface d’attaque. +- Scanner régulièrement les images Docker avec un outil de sécurité (ex : Trivy, Clair). +- Mettre à jour en continu les images de base afin d’éliminer les vulnérabilités. +- Ne jamais exposer de ports inutiles. +- Restreindre les volumes montés au strict nécessaire. +- Utiliser des réseaux Docker internes pour la communication inter-containers. +- Vérifier et tenir à jour les .dockerignore. + +### Git +- Ne jamais committer de secrets, clés ou identifiants (même temporairement). +- Configurer des hooks Git (pre-commit) pour détecter automatiquement les secrets et les failles. +- Vérifier l’historique (`git log`, `git filter-repo`) pour s’assurer qu’aucune information sensible n’a été poussée. +- Signer les commits avec GPG pour garantir l’authenticité. +- Utiliser systématiquement SSH pour les connexions à distance. +- Restreindre les accès aux dépôts (principes du moindre privilège). +- Documenter les changements sensibles dans `CHANGELOG.md`. +- Ne jamais pousser directement sur `main` ou `master`, toujours passer par des branches de feature ou PR. +- Vérifier et tenir à jour les .gitignore. +- Vérifier et tenir à jour les .gitkeep. +- Vérifier et tenir à jour les .gitattributes. + +### Cursor +- Toujours ouvrir une session en commençant par relire le fichier `.cursorrules`. +- Vérifier que Cursor ne propose pas de commit contenant des secrets ou fichiers sensibles. +- Ne pas exécuter dans Cursor de commandes non comprises ou copiées sans vérification. +- Préférer l’utilisation de scripts audités dans `scripts/` plutôt que des commandes directes dans Cursor. +- Fermer et relancer Cursor régulièrement pour éviter des contextes persistants non désirés. +- Ne jamais partager le contenu du terminal ou des fichiers sensibles via Cursor en dehors du périmètre du projet. +- Vérifier et tenir à jour les .cursorrules. +- Vérifier et tenir à jour les .cursorignore. diff --git a/docs/doc_api/API Annuaire - Hiérarchies des entités dans le notariat - API Annuaire.pdf b/docs/doc_api/API Annuaire - Hiérarchies des entités dans le notariat - API Annuaire.pdf new file mode 100644 index 0000000..5bef96d Binary files /dev/null and b/docs/doc_api/API Annuaire - Hiérarchies des entités dans le notariat - API Annuaire.pdf differ diff --git a/docs/doc_api/API Annuaire - Migration de l'APIv1 vers l'APIv2.pdf b/docs/doc_api/API Annuaire - Migration de l'APIv1 vers l'APIv2.pdf new file mode 100644 index 0000000..8033475 Binary files /dev/null and b/docs/doc_api/API Annuaire - Migration de l'APIv1 vers l'APIv2.pdf differ diff --git a/docs/doc_api/API Annuaire - Présentation et guide d'intégration.pdf b/docs/doc_api/API Annuaire - Présentation et guide d'intégration.pdf new file mode 100644 index 0000000..f41c121 Binary files /dev/null and b/docs/doc_api/API Annuaire - Présentation et guide d'intégration.pdf differ diff --git a/docs/doc_api/API Annuaire - V2 - Documentation Utilisateur.pdf b/docs/doc_api/API Annuaire - V2 - Documentation Utilisateur.pdf new file mode 100644 index 0000000..35ac583 Binary files /dev/null and b/docs/doc_api/API Annuaire - V2 - Documentation Utilisateur.pdf differ diff --git a/docs/doc_api/ID.NOT - Document d'intégration OpenIDConnect.pdf b/docs/doc_api/ID.NOT - Document d'intégration OpenIDConnect.pdf new file mode 100644 index 0000000..3cfc53b Binary files /dev/null and b/docs/doc_api/ID.NOT - Document d'intégration OpenIDConnect.pdf differ diff --git a/docs/doc_api/ID.NOT - Présentation et guide d'intégration.pdf b/docs/doc_api/ID.NOT - Présentation et guide d'intégration.pdf new file mode 100644 index 0000000..3b817e5 Binary files /dev/null and b/docs/doc_api/ID.NOT - Présentation et guide d'intégration.pdf differ diff --git a/docs/doc_api/Portail des raccordements - Guide de démarrage.pdf b/docs/doc_api/Portail des raccordements - Guide de démarrage.pdf new file mode 100644 index 0000000..6336400 Binary files /dev/null and b/docs/doc_api/Portail des raccordements - Guide de démarrage.pdf differ diff --git a/docs/logs-backend.md b/docs/logs-backend.md new file mode 100644 index 0000000..b27c380 --- /dev/null +++ b/docs/logs-backend.md @@ -0,0 +1,119 @@ +## Logs backend – emplacements et points de contrôle + +### Emplacements des logs +- **log courant**: `logs/backend.out` +- **PID du process Node**: `logs/backend.pid` +- **logs rotés**: `logs/backend_YYYYMMDD_HHMMSS.out` +- **logs de build (si utilisés)**: `logs/build_YYYYMMDD_HHMMSS.out` + +### Rotation simple (manuelle) +- Renommer `logs/backend.out` en `logs/backend_YYYYMMDD_HHMMSS.out` avant relance. + +### Démarrage / Arrêt +- Au démarrage, rechercher: `Server started on port 8080` (ou le port configuré). +- En arrêt/redémarrage, s’assurer qu’aucun ancien process ne reste actif (voir `logs/backend.pid`). + +### Suivi temps réel +- Suivre `logs/backend.out` en continu pour les scénarios de test. +- Capturer la fenêtre incluant: callback → échange de token → appels Annuaire. + +### Points de contrôle à rechercher (IdNot) +- **Réception du callback**: + - `[IdNotCallback] incoming request` avec `code_present: true` et `state_present: true`. +- **Échange de token OIDC**: + - `Token exchange successful` avec `hasAccessToken`, `hasIdToken`. +- **Décodage JWT**: + - `JWT payload decoded` avec `hasProfileIdn`, `hasEntityIdn`. +- **Appels Annuaire (QUAL)** – réponses JSON attendues: + - Absence des erreurs: + - `IdNot non-JSON response` + - `IdNot JSON parse failed` + - En cas d’erreur proxy, on peut voir `No context` (non-JSON). +- **Erreur applicative agrégée**: + - `IdNot authentication failed` ou un objet d’erreur avec `code: 'IDNOT_SERVICE_ERROR'`. + +### Interprétation rapide +- **Si `No context` apparaît**: + - Vérifier l’envoi des en-têtes: `Accept: application/json` et en-tête de contexte IdNot (config via `IDNOT_CONTEXT_HEADER` / `IDNOT_CONTEXT_VALUE`). +- **Si `Token exchange failed`**: + - Vérifier `IDNOT_TOKEN_URL`, `IDNOT_CLIENT_ID`, `IDNOT_CLIENT_SECRET`, `IDNOT_REDIRECT_URI`. +- **Si `User not attached to an office`**: + - Le JWT ou les données Annuaire ne satisfont pas les règles métier attendues. + +### Variables d’environnement utiles (rappel) +- **Bases d’URL**: + - `IDNOT_API_BASE_URL` (données Annuaire, QUAL) + - `IDNOT_ANNUARY_BASE_URL` (Annuaire, endpoints personnes/entités) +- **Contexte QUAL (si requis par le proxy IdNot)**: + - `IDNOT_CONTEXT_HEADER` (ex: `X-Context`) + - `IDNOT_CONTEXT_VALUE` (valeur fournie par IdNot) +- **Auth OIDC**: + - `IDNOT_TOKEN_URL`, `IDNOT_CLIENT_ID`, `IDNOT_CLIENT_SECRET`, `IDNOT_REDIRECT_URI` + +### Bonnes pratiques +- Toujours effectuer une rotation de `logs/backend.out` avant un test significatif. +- Conserver les logs datés pour l’investigation et la comparaison entre exécutions. + +## Nginx – emplacements et points de contrôle + +### Emplacements +- Access log Nginx (vhost): `/var/log/nginx/dev3.4nkweb.com.access.log` +- Error log Nginx (vhost): `/var/log/nginx/dev3.4nkweb.com.error.log` + +### Spécificités de configuration (fichier `confs/nginx/dev3.4nkweb.com.conf`) +- Ajout de `access_log` et `error_log` par vhost. +- Propagation d’un identifiant de requête: `X-Request-Id: $request_id` vers l’upstream. +- Ajout d’un en-tête `X-Request-Id` sur les réponses pour faciliter la corrélation. + +### Corrélation des requêtes +- Utiliser `X-Request-Id` pour faire le lien entre: + - les entrées dans `/var/log/nginx/dev3.4nkweb.com.access.log`, + - et les logs applicatifs dans `logs/backend.out` (recherchez `requestId` dans les logs Express s’il est présent, sinon corrélez via timestamp, méthode et chemin). + +### À surveiller côté Nginx +- Codes `4xx/5xx` dans l’access log sur `/idnot/callback`, `/api/...`, `/ws/`. +- Délai ou timeouts (`upstream timed out`) dans l’error log. +- Cohérence du schéma (`X-Forwarded-Proto`) et du host (`Host`) vers l’upstream. + +## Commandes utiles (ops locales) + +### Backend Node +- Créer dossier logs (idempotent): +```bash +mkdir -p logs +``` +- Rotation log backend courant: +```bash +if [ -f logs/backend.out ]; then mv -f logs/backend.out logs/backend_$(date +%Y%m%d_%H%M%S).out; fi +``` +- Démarrage en arrière-plan avec redirection vers log et PID: +```bash +nohup node dist/server.js > logs/backend.out 2>&1 & echo $! > logs/backend.pid +``` +- Arrêt du backend via PID: +```bash +kill $(cat logs/backend.pid) +``` +- Suivi temps réel des logs backend: +```bash +tail -f logs/backend.out +``` + +### Nginx (local serveur) +- Recharger la configuration après modification: +```bash +sudo nginx -t && sudo systemctl reload nginx +``` +- Suivi des logs Nginx: +```bash +sudo tail -f /var/log/nginx/dev3.4nkweb.com.access.log /var/log/nginx/dev3.4nkweb.com.error.log +``` + +## Dépannage +- Erreur lors de l’écriture de `logs/backend.pid`: + - Assurez-vous que le dossier `logs/` existe avant le démarrage (`mkdir -p logs`). + - Vérifiez les droits d’écriture dans le répertoire du projet. +- Pas de corrélation évidente entre Nginx et backend: + - Utilisez `X-Request-Id` (présent côté Nginx) et rapprochez par timestamp/méthode/chemin côté backend. +- Erreurs IdNot "No context": + - Vérifier les en-têtes envoyés côté backend: `Accept: application/json` et les variables `IDNOT_CONTEXT_HEADER` / `IDNOT_CONTEXT_VALUE`. diff --git a/logs/backend.out b/logs/backend.out index 1544372..b5d276e 100644 --- a/logs/backend.out +++ b/logs/backend.out @@ -1,128 +1,22 @@ -[dotenv@17.2.2] injecting env (42) from .env -- tip: 📡 auto-backup env with Radar: https://dotenvx.com/radar -ℹ️ [INFO] 2025-09-24T20:11:27.763Z Initializing Signer service -Server started on port 8080 -✅ Connected to SDK Signer server -ℹ️ [INFO] 2025-09-24T20:11:27.802Z Signer connected -ℹ️ [INFO] 2025-09-24T20:11:27.802Z Signer connected -ℹ️ [INFO] 2025-09-24T20:11:27.803Z Signer service initialized -[IdNotCallback] incoming request { - originalUrl: '/authorized-client?code=test&state=test', - method: 'GET', - query: { - code_present: true, - code_length: 4, - state_present: true, - state_length: 4 - }, - headers: { - host: 'localhost:8080', - 'x-forwarded-for': undefined, - 'x-forwarded-proto': undefined - } -} -❌ [ERROR] 2025-09-24T20:11:30.449Z Unhandled error -──────────────────────────────────────────────────────────────────────────────── -{ - error: { - message: 'Invalid state format', - name: 'Error', - stack: 'Error: Invalid state format\n' + - ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:70:19)\n' + - ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handl'... 1454 more characters - }, - request: { - body: {}, - ip: '::1', - method: 'GET', - url: '/authorized-client?code=test&state=test', - userAgent: 'curl/7.74.0' - }, - requestId: 'req_1758744690445_bnzxksyst' -} -❌ [ERROR] 2025-09-24T20:11:30.454Z HTTP GET /authorized-client?code=test&state=test - 500 -──────────────────────────────────────────────────────────────────────────────── -{ - duration: 8, - request: { - ip: '::1', - method: 'GET', - url: '/authorized-client?code=test&state=test', - userAgent: 'curl/7.74.0' - }, - requestId: 'req_1758744690445_bnzxksyst', - response: { - statusCode: 500 - } -} -Server error: Device not paired -Full error response: { - "type": "ERROR", - "error": "Device not paired", - "messageId": "msg_1758744717783_97sau1bq8" -} -❌ [ERROR] 2025-09-24T20:11:57.802Z Signer WebSocket error -──────────────────────────────────────────────────────────────────────────────── -{ - error: 'Device not paired' -} -❌ [ERROR] 2025-09-24T20:11:57.803Z Signer connection error -──────────────────────────────────────────────────────────────────────────────── -{ - error: 'Device not paired' -} -⚠️ [WARN] 2025-09-24T20:11:57.803Z Signer disconnected - reconnecting... -⚠️ [WARN] 2025-09-24T20:11:57.803Z Signer disconnected -⚠️ [WARN] 2025-09-24T20:11:57.804Z Signer health check failed - connection may be stale -──────────────────────────────────────────────────────────────────────────────── -{ - error: 'Server error for GET_PAIRING_ID: Device not paired' -} -[IdNotCallback] incoming request { - originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4TaMD7xemsEvduXR31EoturtACt49vF2_UMcEcUawDDGuuzRobwEpsiMbCP92fc_9i_TRlEwB-1Zx4wP0R4Gv_J0S544ceyPhEMFZcQN0Xn2fkpdpyd27_c3tUug-AENpFit25EBfy6dk2JyifWaKGLJVqqTjzemNbcGtw6Cx-xE8_Warl3MjVks0eRDpnHSzPWKvNfceCr82W7j_19OodAZk8yMSOA4PPeeyytvL5AG_iHklhQ7z3YnP3XrKbIYWMeRFwvSlrHUe5ubEKwma24OlK269veQW_4R1mokvl9iNgFt6xQ8T398SQend9AdAEC75WKl0PKFraVI69jyF1DoqzQrZKqESsk1oLpvSLYslklSNQKsKB8cxx4qz2H_HPlf0izqhwlu_Kyn_WHhMcqxvNSGGdZ2en_dT2nweT3Q8kEXN1mItZIZugSIU&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiJjOGYwYTliNWQxMDE0NmRkNThlZGQ4NDk1ZjBlNjM2YSIsInRzIjoxNzU4NzQ0NDgyOTQwfQ.TsvjFvbs3N72YvzsHv2aapYyyn2M8kxPZgDbZz9AY6M', - method: 'HEAD', - query: { - code_present: true, - code_length: 619, - state_present: true, - state_length: 202 - }, - headers: { - host: 'lecoffreio.4nkweb.com', - 'x-forwarded-for': '31.33.24.235', - 'x-forwarded-proto': 'https' - } -} -❌ [ERROR] 2025-09-24T20:12:18.286Z Unhandled error -──────────────────────────────────────────────────────────────────────────────── -{ - error: { - message: 'State expired', - name: 'Error', - stack: 'Error: State expired\n' + - ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + - ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters - }, - request: { - body: {}, - ip: '::ffff:127.0.0.1', - method: 'HEAD', - url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4T'... 652 more characters, - userAgent: 'curl/7.74.0' - }, - requestId: 'req_1758744738283_abyo6gg8a' -} -❌ [ERROR] 2025-09-24T20:12:18.287Z HTTP HEAD /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4TaMD7xemsEvduXR31EoturtACt49vF2_UMcEcUawDDGuuzRobwEpsiMbCP92fc_9i_TRlEwB-1Zx4wP0R4Gv_J0S544ceyPhEMFZcQN0Xn2fkpdpyd27_c3tUug-AENpFit25EBfy6dk2JyifWaKGLJVqqTjzemNbcGtw6Cx-xE8_Warl3MjVks0eRDpnHSzPWKvNfceCr82W7j_19OodAZk8yMSOA4PPeeyytvL5AG_iHklhQ7z3YnP3XrKbIYWMeRFwvSlrHUe5ubEKwma24OlK269veQW_4R1mokvl9iNgFt6xQ8T398SQend9AdAEC75WKl0PKFraVI69jyF1DoqzQrZKqESsk1oLpvSLYslklSNQKsKB8cxx4qz2H_HPlf0izqhwlu_Kyn_WHhMcqxvNSGGdZ2en_dT2nweT3Q8kEXN1mItZIZugSIU&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiJjOGYwYTliNWQxMDE0NmRkNThlZGQ4NDk1ZjBlNjM2YSIsInRzIjoxNzU4NzQ0NDgyOTQwfQ.TsvjFvbs3N72YvzsHv2aapYyyn2M8kxPZgDbZz9AY6M - 500 -──────────────────────────────────────────────────────────────────────────────── -{ - duration: 4, - request: { - ip: '::ffff:127.0.0.1', - method: 'HEAD', - url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4T'... 652 more characters, - userAgent: 'curl/7.74.0' - }, - requestId: 'req_1758744738283_abyo6gg8a', - response: { - statusCode: 500 - } -} +[dotenv@17.2.2] injecting env (44) from .env -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' } +/home/ank/dev/lecoffre-back-mini/node_modules/uuid/dist/cjs/v1.js:28 + state.msecs ??= -Infinity; + ^^^ + +SyntaxError: Unexpected token '??=' + at wrapSafe (internal/modules/cjs/loader.js:1029:16) + at Module._compile (internal/modules/cjs/loader.js:1078:27) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10) + at Module.load (internal/modules/cjs/loader.js:979:32) + at Function.Module._load (internal/modules/cjs/loader.js:819:12) + at Module.require (internal/modules/cjs/loader.js:1003:19) + at require (internal/modules/cjs/helpers.js:107:18) + at Object. (/home/ank/dev/lecoffre-back-mini/node_modules/uuid/dist/cjs/index.js:12:15) + at Module._compile (internal/modules/cjs/loader.js:1114:14) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10) + at Module.load (internal/modules/cjs/loader.js:979:32) + at Function.Module._load (internal/modules/cjs/loader.js:819:12) + at Module.require (internal/modules/cjs/loader.js:1003:19) + at require (internal/modules/cjs/helpers.js:107:18) + at Object. (/home/ank/dev/lecoffre-back-mini/dist/utils/session-manager.js:4:16) + at Module._compile (internal/modules/cjs/loader.js:1114:14) diff --git a/logs/backend_20250925_085618.out b/logs/backend_20250925_085618.out new file mode 100644 index 0000000..49285a3 --- /dev/null +++ b/logs/backend_20250925_085618.out @@ -0,0 +1,2134 @@ +[dotenv@17.2.2] injecting env (42) from .env -- tip: 📡 auto-backup env with Radar: https://dotenvx.com/radar +ℹ️ [INFO] 2025-09-24T20:11:27.763Z Initializing Signer service +Server started on port 8080 +✅ Connected to SDK Signer server +ℹ️ [INFO] 2025-09-24T20:11:27.802Z Signer connected +ℹ️ [INFO] 2025-09-24T20:11:27.802Z Signer connected +ℹ️ [INFO] 2025-09-24T20:11:27.803Z Signer service initialized +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=test&state=test', + method: 'GET', + query: { + code_present: true, + code_length: 4, + state_present: true, + state_length: 4 + }, + headers: { + host: 'localhost:8080', + 'x-forwarded-for': undefined, + 'x-forwarded-proto': undefined + } +} +❌ [ERROR] 2025-09-24T20:11:30.449Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'Invalid state format', + name: 'Error', + stack: 'Error: Invalid state format\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:70:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handl'... 1454 more characters + }, + request: { + body: {}, + ip: '::1', + method: 'GET', + url: '/authorized-client?code=test&state=test', + userAgent: 'curl/7.74.0' + }, + requestId: 'req_1758744690445_bnzxksyst' +} +❌ [ERROR] 2025-09-24T20:11:30.454Z HTTP GET /authorized-client?code=test&state=test - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 8, + request: { + ip: '::1', + method: 'GET', + url: '/authorized-client?code=test&state=test', + userAgent: 'curl/7.74.0' + }, + requestId: 'req_1758744690445_bnzxksyst', + response: { + statusCode: 500 + } +} +Server error: Device not paired +Full error response: { + "type": "ERROR", + "error": "Device not paired", + "messageId": "msg_1758744717783_97sau1bq8" +} +❌ [ERROR] 2025-09-24T20:11:57.802Z Signer WebSocket error +──────────────────────────────────────────────────────────────────────────────── +{ + error: 'Device not paired' +} +❌ [ERROR] 2025-09-24T20:11:57.803Z Signer connection error +──────────────────────────────────────────────────────────────────────────────── +{ + error: 'Device not paired' +} +⚠️ [WARN] 2025-09-24T20:11:57.803Z Signer disconnected - reconnecting... +⚠️ [WARN] 2025-09-24T20:11:57.803Z Signer disconnected +⚠️ [WARN] 2025-09-24T20:11:57.804Z Signer health check failed - connection may be stale +──────────────────────────────────────────────────────────────────────────────── +{ + error: 'Server error for GET_PAIRING_ID: Device not paired' +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4TaMD7xemsEvduXR31EoturtACt49vF2_UMcEcUawDDGuuzRobwEpsiMbCP92fc_9i_TRlEwB-1Zx4wP0R4Gv_J0S544ceyPhEMFZcQN0Xn2fkpdpyd27_c3tUug-AENpFit25EBfy6dk2JyifWaKGLJVqqTjzemNbcGtw6Cx-xE8_Warl3MjVks0eRDpnHSzPWKvNfceCr82W7j_19OodAZk8yMSOA4PPeeyytvL5AG_iHklhQ7z3YnP3XrKbIYWMeRFwvSlrHUe5ubEKwma24OlK269veQW_4R1mokvl9iNgFt6xQ8T398SQend9AdAEC75WKl0PKFraVI69jyF1DoqzQrZKqESsk1oLpvSLYslklSNQKsKB8cxx4qz2H_HPlf0izqhwlu_Kyn_WHhMcqxvNSGGdZ2en_dT2nweT3Q8kEXN1mItZIZugSIU&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiJjOGYwYTliNWQxMDE0NmRkNThlZGQ4NDk1ZjBlNjM2YSIsInRzIjoxNzU4NzQ0NDgyOTQwfQ.TsvjFvbs3N72YvzsHv2aapYyyn2M8kxPZgDbZz9AY6M', + method: 'HEAD', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '31.33.24.235', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-24T20:12:18.286Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'HEAD', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4T'... 652 more characters, + userAgent: 'curl/7.74.0' + }, + requestId: 'req_1758744738283_abyo6gg8a' +} +❌ [ERROR] 2025-09-24T20:12:18.287Z HTTP HEAD /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4TaMD7xemsEvduXR31EoturtACt49vF2_UMcEcUawDDGuuzRobwEpsiMbCP92fc_9i_TRlEwB-1Zx4wP0R4Gv_J0S544ceyPhEMFZcQN0Xn2fkpdpyd27_c3tUug-AENpFit25EBfy6dk2JyifWaKGLJVqqTjzemNbcGtw6Cx-xE8_Warl3MjVks0eRDpnHSzPWKvNfceCr82W7j_19OodAZk8yMSOA4PPeeyytvL5AG_iHklhQ7z3YnP3XrKbIYWMeRFwvSlrHUe5ubEKwma24OlK269veQW_4R1mokvl9iNgFt6xQ8T398SQend9AdAEC75WKl0PKFraVI69jyF1DoqzQrZKqESsk1oLpvSLYslklSNQKsKB8cxx4qz2H_HPlf0izqhwlu_Kyn_WHhMcqxvNSGGdZ2en_dT2nweT3Q8kEXN1mItZIZugSIU&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiJjOGYwYTliNWQxMDE0NmRkNThlZGQ4NDk1ZjBlNjM2YSIsInRzIjoxNzU4NzQ0NDgyOTQwfQ.TsvjFvbs3N72YvzsHv2aapYyyn2M8kxPZgDbZz9AY6M - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 4, + request: { + ip: '::ffff:127.0.0.1', + method: 'HEAD', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArPLYyM01CYe3Uz5NGYg8xS5yzwP2JHkO-jUXIgHEIvZh0tHXACthl0LW1SZ2oZDvMNzOsutgMM6K51SOkgdQaE73YL4T'... 652 more characters, + userAgent: 'curl/7.74.0' + }, + requestId: 'req_1758744738283_abyo6gg8a', + response: { + statusCode: 500 + } +} +ℹ️ [INFO] 2025-09-24T20:12:58.287Z HTTP POST /api/v1/idnot/state - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'POST', + url: '/api/v1/idnot/state', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758744778270_6didwtnfy', + response: { + statusCode: 200 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '212.133.41.15', + 'x-forwarded-proto': 'https' + } +} +ℹ️ [INFO] 2025-09-24T20:12:59.965Z IdNot authentication initiated +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...' +} +🔍 IdNot Token Request Debug: { + url: 'https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1', + client_id: 'B3CE56353EDB15A9', + redirect_uri: 'https://lecoffreio.4nkweb.com/authorized-client', + grant_type: 'authorization_code', + code_length: 619, + code_prefix: 'eyzP3g1U...' +} +🔍 IdNot Token Response Debug: { + status: 200, + statusText: 'OK', + headers: { + 'access-control-allow-origin': 'https://rct.espace-client.adnov.fr', + 'cache-control': 'no-store, no-cache, must-revalidate, max-age=0, private, post-check=0, pre-check=0', + 'content-encoding': 'gzip', + 'content-security-policy': "default-src https: data: 'unsafe-inline' 'unsafe-eval', frame-ancestors 'self'", + 'content-type': 'application/json;charset=UTF-8', + date: 'Wed, 24 Sep 2025 20:13:00 GMT', + pragma: 'no-cache', + 'referrer-policy': 'no-referrer-when-downgrade', + server: 'webserver', + 'set-cookie': 'JSESSIONID=87DAA627E7940F0F85BE0027CF33F553; Path=/user; Secure; HttpOnly; SameSite=None;HttpOnly;Secure;SameSite=None, sngLog=eyJjaWQiOiIxNDI0NjU2Mzk2In0=;path=/;secure;HttpOnly;SameSite=None;HttpOnly;Secure;SameSite=None, 1129379840_JSESSIONID=87DAA627E7940F0F85BE0027CF33F553;path=/user;secure;HttpOnly;SameSite=Lax;HttpOnly;Secure;SameSite=None, HABIDNSNGIDP=habidnsngidp2; path=/; HttpOnly; Secure; SameSite=Lax;HttpOnly;Secure;SameSite=None, HAINTIDNSNGIDP=haintidnsngidp2; path=/; HttpOnly; Secure, visid_incap_2866785=jlOba5iDSAi3rltuqWAqSMtQ1GgAAAAAQUIPAAAAAAD7RxNbw/WpgNLz7nw1x3/D; expires=Wed, 23 Sep 2026 22:14:25 GMT; HttpOnly; path=/, nlbi_2866785=U7ZdGiJgSTKmzR25JLQQxgAAAABO1GyAs8g3dK5I1KLOBrka; HttpOnly; path=/, incap_ses_978_2866785=+jCqIKCG8xCAlWXa7Y2SDcxQ1GgAAAAA6qr3qQY2jw0/rjZYcsF8SQ==; path=/', + 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload, max-age=0', + 'transfer-encoding': 'chunked', + 'x-cdn': 'Imperva', + 'x-content-type-options': 'nosniff', + 'x-frame-options': 'SAMEORIGIN, DENY', + 'x-iinfo': '44-189782324-189782331 NNYN CT(22 14 0) RT(1758744780021 19) q(0 0 1 0) r(1 4) U24', + 'x-xss-protection': '1; mode=block' + } +} +ℹ️ [INFO] 2025-09-24T20:13:00.398Z Token exchange successful +──────────────────────────────────────────────────────────────────────────────── +{ + hasAccessToken: true, + hasIdToken: true, + tokenKeys: [ + 'access_token', + 'id_token', + 'token_type', + 'expires_in' + ] +} +ℹ️ [INFO] 2025-09-24T20:13:00.398Z JWT payload decoded +──────────────────────────────────────────────────────────────────────────────── +{ + hasEntityIdn: true, + hasProfileIdn: true, + hasSub: true, + payloadKeys: [ + 'at_hash', + 'sub', + 'profile_idn', + 'amr', + 'iss', + 'given_name', + 'sid', + 'aud', + 'nbf', + 'auth_time', + ... 4 more items + ] +} +❌ [ERROR] 2025-09-24T20:13:00.523Z IdNot authentication failed +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...', + error: `invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e reason: Unexpected token 'N', "No context"... is not `... 10 more characters +} +❌ [ERROR] 2025-09-24T20:13:00.524Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'IDNOT_SERVICE_ERROR', + details: undefined, + message: 'Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e '... 63 more characters, + stack: 'Error: Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767'... 454 more characters, + statusCode: 502 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758744779964_unaw9z4ws' +} +❌ [ERROR] 2025-09-24T20:13:00.526Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg - 502 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 562, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758744779964_unaw9z4ws', + response: { + statusCode: 502 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-24T20:15:35.652Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'Invalid nonce', + name: 'Error', + stack: 'Error: Invalid nonce\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:85:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758744935651_ui78b0lcu' +} +❌ [ERROR] 2025-09-24T20:15:35.653Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 2, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758744935651_ui78b0lcu', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-24T20:15:36.811Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'Invalid nonce', + name: 'Error', + stack: 'Error: Invalid nonce\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:85:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758744936810_drvgib69w' +} +❌ [ERROR] 2025-09-24T20:15:36.812Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758744936810_drvgib69w', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-24T20:15:38.934Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'Invalid nonce', + name: 'Error', + stack: 'Error: Invalid nonce\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:85:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758744938933_kyce2wq0d' +} +❌ [ERROR] 2025-09-24T20:15:38.935Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93fdWipjkJ2pdua1XiFJaqj1jQew3pPZ25Je2ggXVFAikXO6YjUvIv977Do5ngeTo6I9saHjoMRh4bfCzcHIYBjUa3mWtQcaUmhDUL83mSh6QETpjnpYHpWxBWN2CJTiEXs-Wh1-nRADm0R4DT59rTFs0LyMiQWn6WKPZW-jfq9p0U6r-qOXMTdBZ_AorBK_OvdwYLBWXsBdj4egehitO9veTBpW4Ay25EOQXaak2WtrGDGQdAzMQIW5i45xpVzfotKvbattK1ppdsjGFQHpPDqiJStUGWlPe2Mqet60S0RL9xPD4kPDar_6cHU4UesYM0L-buks0UBiiJU-p9k-hEwq3VD-MV7EcwF0RAXqVNJk-Ww5i1uQH3OxoprhLV74p-7gCULH5jTnfal_ifXLB8_iYXy_ZZF4tCg34i2-V9Wjl4ZNEy8Ymq5SJBf1c&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiIzYzA0MDc5NjM5YjkyMWE0MjllOTQ2ZjkxZWIzNjAzZCIsInRzIjoxNzU4NzQ0Nzc4Mjg2fQ.zliQfZ1dRHFdlqpEM70ddsDRROXo5os6N6aeCRuXNvg - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 2, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZhjKsvXLxN9cUISi34ZVArNPltTwqfeKOkJlJhzR3Wmxq6YHQP91Yigkr8rAcFySzcIhYgwbo4jXQiT9-_YsFpNruzRZofyjTtTk1UfssKEeIOh93'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758744938933_kyce2wq0d', + response: { + statusCode: 500 + } +} +❌ [ERROR] 2025-09-24T20:17:28.154Z HTTP POST /goform/set_LimitClient_cfg - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 2, + request: { + ip: '::ffff:45.38.44.221', + method: 'POST', + url: '/goform/set_LimitClient_cfg', + userAgent: 'Go-http-client/1.1' + }, + requestId: 'req_1758745048151_1kapw3zpm', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T20:18:51.251Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758745131250_l54ak0p86', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T20:20:40.369Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758745240367_lqrtt2pvf', + response: { + statusCode: 404 + } +} +ℹ️ [INFO] 2025-09-24T20:21:17.881Z HTTP POST /api/v1/idnot/state - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'POST', + url: '/api/v1/idnot/state', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745277879_jq2etpudg', + response: { + statusCode: 200 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxS0ZSSWQktFaiHq9TwEWTiAETo_oF_aDR5cSWXzdKXYp3pxW9JICYtuJwYEGMrPPmQzvD3izD9ujKcbNqmHlo1Cah1TVsdbG08dJ4qHiI4QACYafobuZHwBTEmttNlb9BMS9E-SXMQpJiJrvRonfezuWpD58G6aXiZrZq3ohum0v7mRTWDlK7Pj_eg8UMGvMQWS-EfCAeiYzez8ZRsiXUE7ywNxSerFnAS_J_RJ4rKT87XjiIq-gj75iX8NptLMHypGQCYngaiPvm250tNtmL5hfJWjvzK05YyPPr4TaXQLkeis2D8J8PT3-bCN53BFqNFco4CTUycAP0t8Oyew_6KAa0w4YA04XpkeSNK4Do5gSTwqXTsPUuZ9fpb3Qv0ZtfrhAgSYN27th_qIIckuihU7aCgXJHNIvcjm6eqo29ACmWXT3e9LrqEwhQlGpEoviNDv8RvNjp3hczA-JeSQmXl5EPJ_tbzCIdjLrssyCk0eb66HVyq9nL9VPmSwE1sgBopvX5Groj7dLWRJmByy1lGo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI2NjQwOTBkNDE0YTY1ZWJmMWIyYzMwMTc3ODcyYWQ5YiIsInRzIjoxNzU4NzQ1Mjc3ODgwfQ.JFh0sPlUuoCsTEGrw2vQHUiquLWD94Vdrwo5xaLMoKk', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '212.133.41.15', + 'x-forwarded-proto': 'https' + } +} +ℹ️ [INFO] 2025-09-24T20:23:54.200Z IdNot authentication initiated +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...' +} +🔍 IdNot Token Request Debug: { + url: 'https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1', + client_id: 'B3CE56353EDB15A9', + redirect_uri: 'https://lecoffreio.4nkweb.com/authorized-client', + grant_type: 'authorization_code', + code_length: 619, + code_prefix: 'eyzP3g1U...' +} +🔍 IdNot Token Response Debug: { + status: 200, + statusText: 'OK', + headers: { + 'access-control-allow-origin': 'https://rct.espace-client.adnov.fr', + 'cache-control': 'no-store, no-cache, must-revalidate, max-age=0, private, post-check=0, pre-check=0', + 'content-encoding': 'gzip', + 'content-security-policy': "default-src https: data: 'unsafe-inline' 'unsafe-eval', frame-ancestors 'self'", + 'content-type': 'application/json;charset=UTF-8', + date: 'Wed, 24 Sep 2025 20:23:54 GMT', + pragma: 'no-cache', + 'referrer-policy': 'no-referrer-when-downgrade', + server: 'webserver', + 'set-cookie': 'JSESSIONID=A1094390C12B9FDC32F3D2A25AC65819; Path=/user; Secure; HttpOnly; SameSite=None;HttpOnly;Secure;SameSite=None, sngLog=eyJjaWQiOiI1MTUzODM5NzgifQ==;path=/;secure;HttpOnly;SameSite=None;HttpOnly;Secure;SameSite=None, 821409143_JSESSIONID=A1094390C12B9FDC32F3D2A25AC65819;path=/user;secure;HttpOnly;SameSite=Lax;HttpOnly;Secure;SameSite=None, HABIDNSNGIDP=habidnsngidp1; path=/; HttpOnly; Secure; SameSite=Lax;HttpOnly;Secure;SameSite=None, HAINTIDNSNGIDP=haintidnsngidp2; path=/; HttpOnly; Secure, visid_incap_2866785=UfcOXuKNSHqohiqf2arm2lpT1GgAAAAAQUIPAAAAAADblFpV5xVYHnYuCPin9foi; expires=Wed, 23 Sep 2026 22:14:04 GMT; HttpOnly; path=/, nlbi_2866785=i3IUJ6Kzmzm2KIZOJLQQxgAAAADz6Y5uORsswo5HM1bjGsxL; HttpOnly; path=/, incap_ses_978_2866785=+88QVR0Eu0/3anfa7Y2SDVpT1GgAAAAAxSHJ94RwPUb/P2TzNkUOlQ==; path=/', + 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload, max-age=0', + 'transfer-encoding': 'chunked', + 'x-cdn': 'Imperva', + 'x-content-type-options': 'nosniff', + 'x-frame-options': 'SAMEORIGIN, DENY', + 'x-iinfo': '33-82142677-82142678 NNYN CT(12 14 0) RT(1758745434216 6) q(0 0 0 -1) r(0 3) U24', + 'x-xss-protection': '1; mode=block' + } +} +ℹ️ [INFO] 2025-09-24T20:23:54.558Z Token exchange successful +──────────────────────────────────────────────────────────────────────────────── +{ + hasAccessToken: true, + hasIdToken: true, + tokenKeys: [ + 'access_token', + 'id_token', + 'token_type', + 'expires_in' + ] +} +ℹ️ [INFO] 2025-09-24T20:23:54.558Z JWT payload decoded +──────────────────────────────────────────────────────────────────────────────── +{ + hasEntityIdn: true, + hasProfileIdn: true, + hasSub: true, + payloadKeys: [ + 'at_hash', + 'sub', + 'profile_idn', + 'amr', + 'iss', + 'given_name', + 'sid', + 'aud', + 'nbf', + 'auth_time', + ... 4 more items + ] +} +❌ [ERROR] 2025-09-24T20:23:54.668Z IdNot authentication failed +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...', + error: `invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e reason: Unexpected token 'N', "No context"... is not `... 10 more characters +} +❌ [ERROR] 2025-09-24T20:23:54.668Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'IDNOT_SERVICE_ERROR', + details: undefined, + message: 'Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e '... 63 more characters, + stack: 'Error: Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767'... 454 more characters, + statusCode: 502 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxS0ZSSWQktFaiHq9TwEWTiAETo_oF_aDR5cSWXzdKXYp3pxW9JICYtuJwYEGMrPPmQzvD3izD9ujKcbNqmHlo1Cah1TV'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745434199_u7ozv3dxr' +} +❌ [ERROR] 2025-09-24T20:23:54.669Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxS0ZSSWQktFaiHq9TwEWTiAETo_oF_aDR5cSWXzdKXYp3pxW9JICYtuJwYEGMrPPmQzvD3izD9ujKcbNqmHlo1Cah1TVsdbG08dJ4qHiI4QACYafobuZHwBTEmttNlb9BMS9E-SXMQpJiJrvRonfezuWpD58G6aXiZrZq3ohum0v7mRTWDlK7Pj_eg8UMGvMQWS-EfCAeiYzez8ZRsiXUE7ywNxSerFnAS_J_RJ4rKT87XjiIq-gj75iX8NptLMHypGQCYngaiPvm250tNtmL5hfJWjvzK05YyPPr4TaXQLkeis2D8J8PT3-bCN53BFqNFco4CTUycAP0t8Oyew_6KAa0w4YA04XpkeSNK4Do5gSTwqXTsPUuZ9fpb3Qv0ZtfrhAgSYN27th_qIIckuihU7aCgXJHNIvcjm6eqo29ACmWXT3e9LrqEwhQlGpEoviNDv8RvNjp3hczA-JeSQmXl5EPJ_tbzCIdjLrssyCk0eb66HVyq9nL9VPmSwE1sgBopvX5Groj7dLWRJmByy1lGo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI2NjQwOTBkNDE0YTY1ZWJmMWIyYzMwMTc3ODcyYWQ5YiIsInRzIjoxNzU4NzQ1Mjc3ODgwfQ.JFh0sPlUuoCsTEGrw2vQHUiquLWD94Vdrwo5xaLMoKk - 502 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 470, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxS0ZSSWQktFaiHq9TwEWTiAETo_oF_aDR5cSWXzdKXYp3pxW9JICYtuJwYEGMrPPmQzvD3izD9ujKcbNqmHlo1Cah1TV'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745434199_u7ozv3dxr', + response: { + statusCode: 502 + } +} +ℹ️ [INFO] 2025-09-24T20:32:40.373Z HTTP POST /api/v1/idnot/state - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'POST', + url: '/api/v1/idnot/state', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745960372_ac1y22jr9', + response: { + statusCode: 200 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxdGR--BD5mGSs3YzvK4Xd-gJOBPW0liS9qwWiR3-IeRGC-V9jORvcdw99GjZ4d1_HOr5mCR68SBqXxnTyQ-OuSrdMPrXjjn8BlqIfsR06CtqbLPjr_HyprHH5tS1p_MkJT0mm6ckoMPGD9XjvB4twNkyJFd3uafag7MbOI_Rpo2s0cezlIy4Z5bg6hINs0mWbY0ow6TpZfcyi6-6X7qaU_pp-Ql_noobztYQNpb5KflYxbD2rQEtKH5l0f-hfedP_uSIqFbDw1CXME7WGDS_WQR1pn8xuRsOBIXRtwf_JZgqQBuASoaZivMzdlhBLnpnWiuWYGgEgxe_e2GQURTRRj8pBPtKPcyEXUQQO4WOj5vdRbHyidylDChSIkjq1ZVYfK2aqnT1Kaq4HILQjOocyIfm8FmF3WdRqwrSU2m3z27CYW3F5nDwy4JeHs3oBpi8o2-fqSEE0HMFyMUQzLwfuBM_2n3-yWxRy4COUVeMHuWsFdavTCd9-WYJTf9ZjpgRvH2t_QCitGumPFg6K8BRHyI&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiJhZjljMmY5NWRmZTU4ZWIyYzMyNTI4ZTcwZjgwZWQxNiIsInRzIjoxNzU4NzQ1OTYwMzcyfQ.wgzG64gFkI6Y_mQPBzSk1BoLA-3TBCNVtPiNsmXnvHY', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '212.133.41.15', + 'x-forwarded-proto': 'https' + } +} +ℹ️ [INFO] 2025-09-24T20:32:41.992Z IdNot authentication initiated +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...' +} +🔍 IdNot Token Request Debug: { + url: 'https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1', + client_id: 'B3CE56353EDB15A9', + redirect_uri: 'https://lecoffreio.4nkweb.com/authorized-client', + grant_type: 'authorization_code', + code_length: 619, + code_prefix: 'eyzP3g1U...' +} +🔍 IdNot Token Response Debug: { + status: 200, + statusText: 'OK', + headers: { + 'access-control-allow-origin': 'https://rct.espace-client.adnov.fr', + 'cache-control': 'no-store, no-cache, must-revalidate, max-age=0, private, post-check=0, pre-check=0', + 'content-encoding': 'gzip', + 'content-security-policy': "default-src https: data: 'unsafe-inline' 'unsafe-eval', frame-ancestors 'self'", + 'content-type': 'application/json;charset=UTF-8', + date: 'Wed, 24 Sep 2025 20:32:42 GMT', + pragma: 'no-cache', + 'referrer-policy': 'no-referrer-when-downgrade', + server: 'webserver', + 'set-cookie': 'JSESSIONID=26F91F28FBA038B3B6713BA8A7AD7A31; Path=/user; Secure; HttpOnly; SameSite=None;HttpOnly;Secure;SameSite=None, sngLog=eyJjaWQiOiI2NzQ5OTgwNSJ9;path=/;secure;HttpOnly;SameSite=None;HttpOnly;Secure;SameSite=None, 964964487_JSESSIONID=26F91F28FBA038B3B6713BA8A7AD7A31;path=/user;secure;HttpOnly;SameSite=Lax;HttpOnly;Secure;SameSite=None, HABIDNSNGIDP=habidnsngidp2; path=/; HttpOnly; Secure; SameSite=Lax;HttpOnly;Secure;SameSite=None, HAINTIDNSNGIDP=haintidnsngidp1; path=/; HttpOnly; Secure, visid_incap_2866785=6qAXJwb2TQewicZR4Yf9tWpV1GgAAAAAQUIPAAAAAAD/wnMDI/3ItcHvT+bacZhZ; expires=Wed, 23 Sep 2026 22:14:06 GMT; HttpOnly; path=/, nlbi_2866785=mPVGbhziBA4cVq5LJLQQxgAAAABbwLXqAq9cup7LWERDmBNH; HttpOnly; path=/, incap_ses_978_2866785=ssl4buaruT9QDoba7Y2SDWpV1GgAAAAAELKTOfbTqf8wKHwjtHLLyQ==; path=/', + 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload, max-age=0', + 'transfer-encoding': 'chunked', + 'x-cdn': 'Imperva', + 'x-content-type-options': 'nosniff', + 'x-frame-options': 'SAMEORIGIN, DENY', + 'x-iinfo': '47-230861747-230861748 NNYN CT(12 20 0) RT(1758745962009 5) q(0 0 0 -1) r(0 3) U24', + 'x-xss-protection': '1; mode=block' + } +} +ℹ️ [INFO] 2025-09-24T20:32:42.326Z Token exchange successful +──────────────────────────────────────────────────────────────────────────────── +{ + hasAccessToken: true, + hasIdToken: true, + tokenKeys: [ + 'access_token', + 'id_token', + 'token_type', + 'expires_in' + ] +} +ℹ️ [INFO] 2025-09-24T20:32:42.326Z JWT payload decoded +──────────────────────────────────────────────────────────────────────────────── +{ + hasEntityIdn: true, + hasProfileIdn: true, + hasSub: true, + payloadKeys: [ + 'at_hash', + 'sub', + 'profile_idn', + 'amr', + 'iss', + 'given_name', + 'sid', + 'aud', + 'nbf', + 'auth_time', + ... 4 more items + ] +} +❌ [ERROR] 2025-09-24T20:32:42.434Z IdNot authentication failed +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...', + error: `invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e reason: Unexpected token 'N', "No context"... is not `... 10 more characters +} +❌ [ERROR] 2025-09-24T20:32:42.434Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'IDNOT_SERVICE_ERROR', + details: undefined, + message: 'Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e '... 63 more characters, + stack: 'Error: Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767'... 454 more characters, + statusCode: 502 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxdGR--BD5mGSs3YzvK4Xd-gJOBPW0liS9qwWiR3-IeRGC-V9jORvcdw99GjZ4d1_HOr5mCR68SBqXxnTyQ-OuSrdMPrX'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745961991_jzl08z5z2' +} +❌ [ERROR] 2025-09-24T20:32:42.435Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxdGR--BD5mGSs3YzvK4Xd-gJOBPW0liS9qwWiR3-IeRGC-V9jORvcdw99GjZ4d1_HOr5mCR68SBqXxnTyQ-OuSrdMPrXjjn8BlqIfsR06CtqbLPjr_HyprHH5tS1p_MkJT0mm6ckoMPGD9XjvB4twNkyJFd3uafag7MbOI_Rpo2s0cezlIy4Z5bg6hINs0mWbY0ow6TpZfcyi6-6X7qaU_pp-Ql_noobztYQNpb5KflYxbD2rQEtKH5l0f-hfedP_uSIqFbDw1CXME7WGDS_WQR1pn8xuRsOBIXRtwf_JZgqQBuASoaZivMzdlhBLnpnWiuWYGgEgxe_e2GQURTRRj8pBPtKPcyEXUQQO4WOj5vdRbHyidylDChSIkjq1ZVYfK2aqnT1Kaq4HILQjOocyIfm8FmF3WdRqwrSU2m3z27CYW3F5nDwy4JeHs3oBpi8o2-fqSEE0HMFyMUQzLwfuBM_2n3-yWxRy4COUVeMHuWsFdavTCd9-WYJTf9ZjpgRvH2t_QCitGumPFg6K8BRHyI&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiJhZjljMmY5NWRmZTU4ZWIyYzMyNTI4ZTcwZjgwZWQxNiIsInRzIjoxNzU4NzQ1OTYwMzcyfQ.wgzG64gFkI6Y_mQPBzSk1BoLA-3TBCNVtPiNsmXnvHY - 502 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 444, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZeMqsng6wfFrX2wS0stuNxdGR--BD5mGSs3YzvK4Xd-gJOBPW0liS9qwWiR3-IeRGC-V9jORvcdw99GjZ4d1_HOr5mCR68SBqXxnTyQ-OuSrdMPrX'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745961991_jzl08z5z2', + response: { + statusCode: 502 + } +} +ℹ️ [INFO] 2025-09-24T20:33:05.691Z HTTP POST /api/v1/idnot/state - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'POST', + url: '/api/v1/idnot/state', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745985690_i88bvy8h9', + response: { + statusCode: 200 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lJ8DKcUAshLRxw1MYSVC321ZVSuPh0zzZjz4JDOCBWW__gsIhoyG25w-p87qYLP_RR2Mb6O4ZG1Rn-4IS3iRAa_mmFu3e6mBVKVwdSWZj9NMk8d5v4325eKPrnRHtmACiqCVVXediqpbuWH_WA8KXm6RcrMCGfP1j_OhP6FW4rncyEJqH4Q4xDsYHm8HDkJxT9YmZSpxDYCbvUByAXCG_EFZw0o9dHnu803rWK9iRZ0_S8lZxpmDiyOHo0I5ECfdO1nNE8q5kpDAweVlrFMFNT77SSn9jtqzgn_-MQD26upZPpjXDexlzW7iis0tzm0MNF4ILDAjbSSmbboZfdDawK9GUCjAKvY_7pq4l2AkmyvffL_VseEQ11HJSeGbmeCpRIm_CVGg-mHUp7u7AOkj9y6Y6fyhfGwD87bWJ0PXIVbMtKvv2syu--SGmKeYfk4hiiZp_cwFhJfhJSsij75W0Rt2I0eA6PVPUZ9lAgDZHODboO6ZTnMpSzHkoqZMUf7YMyzL-g0dwOOFFf85EB7yGgw&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI5MmYyMTUzOTk0N2NkYWU4OWVkZWRiY2E5MTNmN2JjYyIsInRzIjoxNzU4NzQ1OTg1NjkxfQ.6W_3T4MoWqMGpuyJy3o0QfPjrcgBtIIDcJMj6mcBr_4', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '212.133.41.15', + 'x-forwarded-proto': 'https' + } +} +ℹ️ [INFO] 2025-09-24T20:33:16.563Z IdNot authentication initiated +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...' +} +🔍 IdNot Token Request Debug: { + url: 'https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1', + client_id: 'B3CE56353EDB15A9', + redirect_uri: 'https://lecoffreio.4nkweb.com/authorized-client', + grant_type: 'authorization_code', + code_length: 619, + code_prefix: 'eyzP3g1U...' +} +🔍 IdNot Token Response Debug: { + status: 200, + statusText: 'OK', + headers: { + 'access-control-allow-origin': 'https://rct.espace-client.adnov.fr', + 'cache-control': 'no-store, no-cache, must-revalidate, max-age=0, private, post-check=0, pre-check=0', + 'content-encoding': 'gzip', + 'content-security-policy': "default-src https: data: 'unsafe-inline' 'unsafe-eval', frame-ancestors 'self'", + 'content-type': 'application/json;charset=UTF-8', + date: 'Wed, 24 Sep 2025 20:33:16 GMT', + pragma: 'no-cache', + 'referrer-policy': 'no-referrer-when-downgrade', + server: 'webserver', + 'set-cookie': 'JSESSIONID=8B2918D54634C6EC0D9211F2349CAFD3; Path=/user; Secure; HttpOnly; SameSite=None;HttpOnly;Secure;SameSite=None, sngLog=eyJjaWQiOiI1MTAxMjkxNTcifQ==;path=/;secure;HttpOnly;SameSite=None;HttpOnly;Secure;SameSite=None, 139829943_JSESSIONID=8B2918D54634C6EC0D9211F2349CAFD3;path=/user;secure;HttpOnly;SameSite=Lax;HttpOnly;Secure;SameSite=None, HABIDNSNGIDP=habidnsngidp2; path=/; HttpOnly; Secure; SameSite=Lax;HttpOnly;Secure;SameSite=None, HAINTIDNSNGIDP=haintidnsngidp2; path=/; HttpOnly; Secure, visid_incap_2866785=Lidf1CoSQU+2Z3eKXepf34xV1GgAAAAAQUIPAAAAAADJdwd8Wv7e+Bjkbmw00Qwy; expires=Wed, 23 Sep 2026 22:14:06 GMT; HttpOnly; path=/, nlbi_2866785=v7N/dko92QxRwi0HJLQQxgAAAAAokkYx9KaU55OPgR7ANdYT; HttpOnly; path=/, incap_ses_978_2866785=JP+PGuXarAtyC4fa7Y2SDYxV1GgAAAAAvTQ4NWZKCSqZ0Dp3hEsfOQ==; path=/', + 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload, max-age=0', + 'transfer-encoding': 'chunked', + 'x-cdn': 'Imperva', + 'x-content-type-options': 'nosniff', + 'x-frame-options': 'SAMEORIGIN, DENY', + 'x-iinfo': '47-230873268-230873271 NNYN CT(16 16 0) RT(1758745996579 12) q(0 0 0 -1) r(0 2) U24', + 'x-xss-protection': '1; mode=block' + } +} +ℹ️ [INFO] 2025-09-24T20:33:16.864Z Token exchange successful +──────────────────────────────────────────────────────────────────────────────── +{ + hasAccessToken: true, + hasIdToken: true, + tokenKeys: [ + 'access_token', + 'id_token', + 'token_type', + 'expires_in' + ] +} +ℹ️ [INFO] 2025-09-24T20:33:16.864Z JWT payload decoded +──────────────────────────────────────────────────────────────────────────────── +{ + hasEntityIdn: true, + hasProfileIdn: true, + hasSub: true, + payloadKeys: [ + 'at_hash', + 'sub', + 'profile_idn', + 'amr', + 'iss', + 'given_name', + 'sid', + 'aud', + 'nbf', + 'auth_time', + ... 4 more items + ] +} +❌ [ERROR] 2025-09-24T20:33:16.912Z IdNot authentication failed +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...', + error: `invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e reason: Unexpected token 'N', "No context"... is not `... 10 more characters +} +❌ [ERROR] 2025-09-24T20:33:16.913Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'IDNOT_SERVICE_ERROR', + details: undefined, + message: 'Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e '... 63 more characters, + stack: 'Error: Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767'... 454 more characters, + statusCode: 502 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lJ8DKcUAshLRxw1MYSVC321ZVSuPh0zzZjz4JDOCBWW__gsIhoyG25w-p87qYLP_RR2Mb6O4ZG1Rn-4IS3iRAa_mmFu3'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745996562_1y0pjux3g' +} +❌ [ERROR] 2025-09-24T20:33:16.914Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lJ8DKcUAshLRxw1MYSVC321ZVSuPh0zzZjz4JDOCBWW__gsIhoyG25w-p87qYLP_RR2Mb6O4ZG1Rn-4IS3iRAa_mmFu3e6mBVKVwdSWZj9NMk8d5v4325eKPrnRHtmACiqCVVXediqpbuWH_WA8KXm6RcrMCGfP1j_OhP6FW4rncyEJqH4Q4xDsYHm8HDkJxT9YmZSpxDYCbvUByAXCG_EFZw0o9dHnu803rWK9iRZ0_S8lZxpmDiyOHo0I5ECfdO1nNE8q5kpDAweVlrFMFNT77SSn9jtqzgn_-MQD26upZPpjXDexlzW7iis0tzm0MNF4ILDAjbSSmbboZfdDawK9GUCjAKvY_7pq4l2AkmyvffL_VseEQ11HJSeGbmeCpRIm_CVGg-mHUp7u7AOkj9y6Y6fyhfGwD87bWJ0PXIVbMtKvv2syu--SGmKeYfk4hiiZp_cwFhJfhJSsij75W0Rt2I0eA6PVPUZ9lAgDZHODboO6ZTnMpSzHkoqZMUf7YMyzL-g0dwOOFFf85EB7yGgw&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI5MmYyMTUzOTk0N2NkYWU4OWVkZWRiY2E5MTNmN2JjYyIsInRzIjoxNzU4NzQ1OTg1NjkxfQ.6W_3T4MoWqMGpuyJy3o0QfPjrcgBtIIDcJMj6mcBr_4 - 502 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 352, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lJ8DKcUAshLRxw1MYSVC321ZVSuPh0zzZjz4JDOCBWW__gsIhoyG25w-p87qYLP_RR2Mb6O4ZG1Rn-4IS3iRAa_mmFu3'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758745996562_1y0pjux3g', + response: { + statusCode: 502 + } +} +ℹ️ [INFO] 2025-09-24T20:35:54.842Z HTTP GET /health - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::1', + method: 'GET', + url: '/health', + userAgent: 'curl/7.74.0' + }, + requestId: 'req_1758746154841_zhebwa243', + response: { + statusCode: 200 + } +} +ℹ️ [INFO] 2025-09-24T20:35:54.885Z HTTP OPTIONS /health - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::1', + method: 'OPTIONS', + url: '/health', + userAgent: 'curl/7.74.0' + }, + requestId: 'req_1758746154884_48ux84cak', + response: { + statusCode: 200 + } +} +ℹ️ [INFO] 2025-09-24T20:38:03.797Z HTTP POST /api/v1/idnot/state - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:127.0.0.1', + method: 'POST', + url: '/api/v1/idnot/state', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758746283796_1l55pkcbk', + response: { + statusCode: 200 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '212.133.41.15', + 'x-forwarded-proto': 'https' + } +} +ℹ️ [INFO] 2025-09-24T20:38:05.327Z IdNot authentication initiated +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...' +} +🔍 IdNot Token Request Debug: { + url: 'https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1', + client_id: 'B3CE56353EDB15A9', + redirect_uri: 'https://lecoffreio.4nkweb.com/authorized-client', + grant_type: 'authorization_code', + code_length: 619, + code_prefix: 'eyzP3g1U...' +} +🔍 IdNot Token Response Debug: { + status: 200, + statusText: 'OK', + headers: { + 'access-control-allow-origin': 'https://rct.espace-client.adnov.fr', + 'cache-control': 'no-store, no-cache, must-revalidate, max-age=0, private, post-check=0, pre-check=0', + 'content-encoding': 'gzip', + 'content-security-policy': "default-src https: data: 'unsafe-inline' 'unsafe-eval', frame-ancestors 'self'", + 'content-type': 'application/json;charset=UTF-8', + date: 'Wed, 24 Sep 2025 20:38:05 GMT', + pragma: 'no-cache', + 'referrer-policy': 'no-referrer-when-downgrade', + server: 'webserver', + 'set-cookie': 'JSESSIONID=BD4C9BBC3A6D1BC50377EBBAA75BA2A1; Path=/user; Secure; HttpOnly; SameSite=None;HttpOnly;Secure;SameSite=None, sngLog=eyJjaWQiOiIyMDY1NzQ1ODA5In0=;path=/;secure;HttpOnly;SameSite=None;HttpOnly;Secure;SameSite=None, 427571251_JSESSIONID=BD4C9BBC3A6D1BC50377EBBAA75BA2A1;path=/user;secure;HttpOnly;SameSite=Lax;HttpOnly;Secure;SameSite=None, HABIDNSNGIDP=habidnsngidp2; path=/; HttpOnly; Secure; SameSite=Lax;HttpOnly;Secure;SameSite=None, HAINTIDNSNGIDP=haintidnsngidp2; path=/; HttpOnly; Secure, visid_incap_2866785=a8sRCj/iQOu5NYShJdiFRq1W1GgAAAAAQUIPAAAAAAA82qNq+37mzzOmjVkn0rxd; expires=Wed, 23 Sep 2026 22:14:06 GMT; HttpOnly; path=/, nlbi_2866785=qGCYIv3I9VXQxx1PJLQQxgAAAABcl8jupT9XkBa60RS+aOv6; HttpOnly; path=/, incap_ses_978_2866785=BJrOe6NDUj7eN4/a7Y2SDa1W1GgAAAAA2VoZ2hGd5Vbxe/7MuLHa4w==; path=/', + 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload, max-age=0', + 'transfer-encoding': 'chunked', + 'x-cdn': 'Imperva', + 'x-content-type-options': 'nosniff', + 'x-frame-options': 'SAMEORIGIN, DENY', + 'x-iinfo': '47-230966398-230965306 PNYN RT(1758746285347 12) q(0 0 0 -1) r(5 5) U24', + 'x-xss-protection': '1; mode=block' + } +} +ℹ️ [INFO] 2025-09-24T20:38:05.873Z Token exchange successful +──────────────────────────────────────────────────────────────────────────────── +{ + hasAccessToken: true, + hasIdToken: true, + tokenKeys: [ + 'access_token', + 'id_token', + 'token_type', + 'expires_in' + ] +} +ℹ️ [INFO] 2025-09-24T20:38:05.873Z JWT payload decoded +──────────────────────────────────────────────────────────────────────────────── +{ + hasEntityIdn: true, + hasProfileIdn: true, + hasSub: true, + payloadKeys: [ + 'at_hash', + 'sub', + 'profile_idn', + 'amr', + 'iss', + 'given_name', + 'sid', + 'aud', + 'nbf', + 'auth_time', + ... 4 more items + ] +} +❌ [ERROR] 2025-09-24T20:38:05.959Z IdNot authentication failed +──────────────────────────────────────────────────────────────────────────────── +{ + codePrefix: 'eyzP3g1U...', + error: `invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e reason: Unexpected token 'N', "No context"... is not `... 10 more characters +} +❌ [ERROR] 2025-09-24T20:38:05.960Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'IDNOT_SERVICE_ERROR', + details: undefined, + message: 'Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767555e3e '... 63 more characters, + stack: 'Error: Erreur service externe IdNot: Authentication failed: invalid json response body at https://qual-api.notaires.fr/api/pp/v2/rattachements/IDN00082246I_IDN187087?key=ba557f84-0bf6-4dbf-844f-df2767'... 454 more characters, + statusCode: 502 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758746285327_wl5o86q5d' +} +❌ [ERROR] 2025-09-24T20:38:05.960Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 502 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 633, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758746285327_wl5o86q5d', + response: { + statusCode: 502 + } +} +❌ [ERROR] 2025-09-24T20:38:46.379Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:185.169.4.150', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758746326378_uaeh499ls', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T21:43:51.330Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758750231329_vzcmbs1mu', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T22:09:40.813Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758751780812_lkzftijlo', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T22:52:22.690Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:185.242.226.58', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36' + }, + requestId: 'req_1758754342689_2lfrdpaka', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T22:54:31.619Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758754471618_ohgv82ol4', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:17:15.646Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:84.17.56.165', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36' + }, + requestId: 'req_1758755835645_uzx61rek4', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:17:16.054Z HTTP GET /favicon.ico - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:84.17.56.165', + method: 'GET', + url: '/favicon.ico', + userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36' + }, + requestId: 'req_1758755836053_bvwmih2d8', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:30:05.830Z HTTP GET /phpMyAdmin/scripts/setup.php - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.254', + method: 'GET', + url: '/phpMyAdmin/scripts/setup.php', + userAgent: 'Mozilla/5.0' + }, + requestId: 'req_1758756605829_6jrdy4y38', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:30:05.864Z HTTP GET /phpmyadmin/scripts/setup.php - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:45.135.193.254', + method: 'GET', + url: '/phpmyadmin/scripts/setup.php', + userAgent: 'Mozilla/5.0' + }, + requestId: 'req_1758756605864_chqh0ng08', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:30:05.899Z HTTP GET /pma/scripts/setup.php - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.254', + method: 'GET', + url: '/pma/scripts/setup.php', + userAgent: 'Mozilla/5.0' + }, + requestId: 'req_1758756605898_saby9vik9', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:30:05.934Z HTTP GET /myadmin/scripts/setup.php - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.254', + method: 'GET', + url: '/myadmin/scripts/setup.php', + userAgent: 'Mozilla/5.0' + }, + requestId: 'req_1758756605933_buhpyxm92', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:30:05.968Z HTTP GET /MyAdmin/scripts/setup.php - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:45.135.193.254', + method: 'GET', + url: '/MyAdmin/scripts/setup.php', + userAgent: 'Mozilla/5.0' + }, + requestId: 'req_1758756605968_muo4yxsgs', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-24T23:53:10.651Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758757990650_e4u8hzygh', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T00:15:36.597Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758759336597_4iyjzdu97', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T00:32:22.454Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:185.247.137.36', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)' + }, + requestId: 'req_1758760342453_pql6t7dop', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T00:42:16.346Z HTTP GET /login - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.38.44.221', + method: 'GET', + url: '/login', + userAgent: 'Go-http-client/1.1' + }, + requestId: 'req_1758760936345_mldul9wrn', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T01:35:46.157Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758764146156_8d33xw81y', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T01:43:05.054Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758764585053_booia05i8', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T02:13:08.355Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:18.97.26.26', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 6.2;en-US) AppleWebKit/537.32.36 (KHTML, live Gecko) Chrome/55.0.3017.110 Safari/537.32' + }, + requestId: 'req_1758766388355_sedmrx41i', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T02:15:39.768Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:165.154.238.35', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36' + }, + requestId: 'req_1758766539767_67y8hxu7m', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T02:45:55.197Z HTTP GET /api/.env - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:92.243.24.12', + method: 'GET', + url: '/api/.env', + userAgent: 'python-httpx/0.28.1' + }, + requestId: 'req_1758768355196_4unpgixd2', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T02:55:25.372Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758768925371_ke5gusnxu', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T02:57:04.388Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758769024387_d4s329e2f', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T03:08:13.644Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:205.210.31.171', + method: 'GET', + url: '/', + userAgent: 'Hello from Palo Alto Networks, find out more about our scans in https://docs-cortex.paloaltonetworks.com/r/1/Cortex-Xpanse/Scanning-activity' + }, + requestId: 'req_1758769693643_lloz1icxc', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T04:01:14.996Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:159.223.19.218', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36' + }, + requestId: 'req_1758772874995_uxye8nxnz', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T04:01:15.030Z HTTP GET /favicon.ico - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:159.223.19.218', + method: 'GET', + url: '/favicon.ico', + userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36' + }, + requestId: 'req_1758772875029_uc7ei7x5h', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T04:12:56.627Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758773576626_pvq3gw1ll', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T04:39:54.774Z HTTP GET /manager/html - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:20.171.8.42', + method: 'GET', + url: '/manager/html', + userAgent: 'Mozilla/5.0 zgrab/0.x' + }, + requestId: 'req_1758775194773_2u2kp3uri', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T05:01:08.154Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:138.68.89.32', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0' + }, + requestId: 'req_1758776468153_iqso01mvl', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T05:01:08.184Z HTTP GET /favicon.ico - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:138.68.89.32', + method: 'GET', + url: '/favicon.ico', + userAgent: 'Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0' + }, + requestId: 'req_1758776468184_kglx4f6ds', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T05:06:33.841Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758776793840_jwikq8d90', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T05:36:19.946Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758778579945_kfwyvwez1', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T05:38:41.580Z HTTP GET /?XDEBUG_SESSION_START=phpstorm - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:79.124.58.198', + method: 'GET', + url: '/?XDEBUG_SESSION_START=phpstorm', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' + }, + requestId: 'req_1758778721579_qtrvs8kfi', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:07:40.933Z HTTP GET /api/ - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 2, + request: { + ip: '::ffff:92.243.24.12', + method: 'GET', + url: '/api/', + userAgent: 'meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler)' + }, + requestId: 'req_1758780460931_r4g6wwh5f', + response: { + statusCode: 404 + } +} +[IdNotCallback] incoming request { + originalUrl: '/idnot/callback?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu3NDffTMYHDf8PnhBa87X1DpVlZiFfpAUZ5sDe0O1wwsLYYJqZG03XR6iy-FUvVRBq4_TBxteN6QlMNBrGZa8PIPLDduSgvTNd9co_9PG2NhvYk5ZDSZcaFVzSWC2IRYZNzKPnOfWd1NMr9aFK62xfpYnzMSER879r-IVOVR92hjXF63MA-TuuxQOO9WQgQ9gRrauQlJTrYIvnnjtoTd3hUjXiaK4wvlRyNNqYSkQXjdF2k4fanB9H4k8ioeQ3i6WcfPYiAoS4bP_DGhDOX4ed_Oso7XTk8RjymKAHVf-mR-of2n-WWQW0jAJFMlaJSFvSgm0KGZvsJcJX_oVQEiZ38dpiEJyVPiGV7WYzOH9Y35gzIl3CcFhAaIz9bqkpHLmZvNKQD_Q5NyaVa-WBoijrIltXfssA016g4qi6q4owykra7hOhH5URlk8_wfpR-jwe80NKZ55vPB0vhso-PWZ07aqc1oHVNpnN2dJGZSQJLm8nTTgEcDlFA7PewIXIg6eWHwUkZmJVLeU6hpAnlfgtUARoCczFcpktRLGzfY2XW-NHec1aIL0VC-7I0giWZtxY', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: false, + state_length: undefined + }, + headers: { + host: 'dev3.4nkweb.com', + 'x-forwarded-for': '93.3.5.138', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:18:38.439Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'VALIDATION_ERROR', + details: [ + { + constraints: [ + 'required' + ], + field: 'code', + value: 'eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu3NDffTMYHDf8PnhBa87X1DpVlZiFfpAUZ5sDe0O1wwsLYYJqZG03XR6iy-FUvVRBq4_TBxteN6QlMNBrGZa8PIPLDduSgvTNd9co_9PG2NhvYk5ZDSZcaFVzSWC2IRYZNzKPnOfWd1NMr9aFK62xfpYnzMSER8'... 419 more characters + }, + { + constraints: [ + 'required' + ], + field: 'state', + value: undefined + } + ], + message: 'Missing code or state', + stack: 'Error: Missing code or state\n' + + ' at new ValidationError (/home/ank/dev/lecoffre-back-mini/dist/types/errors.js:64:9)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:39'... 1445 more characters, + statusCode: 400 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/idnot/callback?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu3NDffTMYHDf8PnhBa87X1DpVlZiFfpAUZ5sDe0O1wwsLYYJqZG03XR6iy-FUvVRBq4_TBxteN6QlMNBrGZa8PIPLDduSgvTNd9co_9PG2NhvYk5ZDSZcaFVzSWC2IRYZNzKPnOfWd'... 440 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758781118435_b8aooyukc' +} +❌ [ERROR] 2025-09-25T06:18:38.441Z HTTP GET /idnot/callback?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu3NDffTMYHDf8PnhBa87X1DpVlZiFfpAUZ5sDe0O1wwsLYYJqZG03XR6iy-FUvVRBq4_TBxteN6QlMNBrGZa8PIPLDduSgvTNd9co_9PG2NhvYk5ZDSZcaFVzSWC2IRYZNzKPnOfWd1NMr9aFK62xfpYnzMSER879r-IVOVR92hjXF63MA-TuuxQOO9WQgQ9gRrauQlJTrYIvnnjtoTd3hUjXiaK4wvlRyNNqYSkQXjdF2k4fanB9H4k8ioeQ3i6WcfPYiAoS4bP_DGhDOX4ed_Oso7XTk8RjymKAHVf-mR-of2n-WWQW0jAJFMlaJSFvSgm0KGZvsJcJX_oVQEiZ38dpiEJyVPiGV7WYzOH9Y35gzIl3CcFhAaIz9bqkpHLmZvNKQD_Q5NyaVa-WBoijrIltXfssA016g4qi6q4owykra7hOhH5URlk8_wfpR-jwe80NKZ55vPB0vhso-PWZ07aqc1oHVNpnN2dJGZSQJLm8nTTgEcDlFA7PewIXIg6eWHwUkZmJVLeU6hpAnlfgtUARoCczFcpktRLGzfY2XW-NHec1aIL0VC-7I0giWZtxY - 400 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 6, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/idnot/callback?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu3NDffTMYHDf8PnhBa87X1DpVlZiFfpAUZ5sDe0O1wwsLYYJqZG03XR6iy-FUvVRBq4_TBxteN6QlMNBrGZa8PIPLDduSgvTNd9co_9PG2NhvYk5ZDSZcaFVzSWC2IRYZNzKPnOfWd'... 440 more characters, + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758781118435_b8aooyukc', + response: { + statusCode: 400 + } +} +[IdNotCallback] incoming request { + originalUrl: '/idnot/callback', + method: 'GET', + query: { + code_present: false, + code_length: undefined, + state_present: false, + state_length: undefined + }, + headers: { + host: 'dev3.4nkweb.com', + 'x-forwarded-for': '93.3.5.138', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:18:51.392Z Application error occurred +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + code: 'VALIDATION_ERROR', + details: [ + { + constraints: [ + 'required' + ], + field: 'code', + value: undefined + }, + { + constraints: [ + 'required' + ], + field: 'state', + value: undefined + } + ], + message: 'Missing code or state', + stack: 'Error: Missing code or state\n' + + ' at new ValidationError (/home/ank/dev/lecoffre-back-mini/dist/types/errors.js:64:9)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:39'... 1445 more characters, + statusCode: 400 + }, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/idnot/callback', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758781131391_l8u87fxcl' +} +❌ [ERROR] 2025-09-25T06:18:51.392Z HTTP GET /idnot/callback - 400 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/idnot/callback', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' + }, + requestId: 'req_1758781131391_l8u87fxcl', + response: { + statusCode: 400 + } +} +❌ [ERROR] 2025-09-25T06:21:04.605Z HTTP GET /actuator/gateway/routes - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:79.124.58.198', + method: 'GET', + url: '/actuator/gateway/routes', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' + }, + requestId: 'req_1758781264604_0a8h4rk5m', + response: { + statusCode: 404 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:23:13.487Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781393484_sdrptm2qe' +} +❌ [ERROR] 2025-09-25T06:23:13.488Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 4, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781393484_sdrptm2qe', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:23:14.633Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781394632_yv4oi83l0' +} +❌ [ERROR] 2025-09-25T06:23:14.634Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 2, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781394632_yv4oi83l0', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:23:16.748Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781396747_zjo3vqud9' +} +❌ [ERROR] 2025-09-25T06:23:16.748Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781396747_zjo3vqud9', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:25:26.253Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781526253_zhbkafsao' +} +❌ [ERROR] 2025-09-25T06:25:26.254Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781526253_zhbkafsao', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:25:27.364Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781527363_s7uc1iwad' +} +❌ [ERROR] 2025-09-25T06:25:27.365Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 2, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781527363_s7uc1iwad', + response: { + statusCode: 500 + } +} +[IdNotCallback] incoming request { + originalUrl: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ', + method: 'GET', + query: { + code_present: true, + code_length: 619, + state_present: true, + state_length: 202 + }, + headers: { + host: 'lecoffreio.4nkweb.com', + 'x-forwarded-for': '35.171.45.91', + 'x-forwarded-proto': 'https' + } +} +❌ [ERROR] 2025-09-25T06:25:29.529Z Unhandled error +──────────────────────────────────────────────────────────────────────────────── +{ + error: { + message: 'State expired', + name: 'Error', + stack: 'Error: State expired\n' + + ' at Object.verifyState (/home/ank/dev/lecoffre-back-mini/dist/services/state.service.js:81:19)\n' + + ' at /home/ank/dev/lecoffre-back-mini/dist/handlers/idnot-callback.handlers.js:'... 1447 more characters + }, + request: { + body: {}, + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781529528_qg4q9ir00' +} +❌ [ERROR] 2025-09-25T06:25:29.529Z HTTP GET /authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2jpzCYPegNFGQn5LqGbAt8x2XHL-e6uO3zS9pEsV3hekUbAyFN9KEBMJh0OARfEIGt_nUpoGdif7futKLdPUvgd6wP955vqCuY87ChdRM72JgfbGHp6GmnlsSS4VgVstKYvetNGjGSEYAxCsTf1D9q9Fnq1z_LOgXJ8W2Pp0m_sppBmcUC7hUjYpiYQO-ZEmkn8NZFuLLuyxj271Vl_AycWKLgmUNXQ3A9ESauGGRtM4O47iJf5M-gQsH8sKWTDTzUAzDe6NrBmaZEhP2GZyJK4snq-OyjZ_mcEAFwb_MNcQywML3Fff1JZY3Vd5Zwtlv506Qcw2nVn_pNNk9RygJdvcRZCEOQeYZScmno9grcJ-ZHsInMaGNHnTAj_xc6E01QlPMB9JtojB-OT8-dg-juZa6MBpa5VbS0NWkjGNIHyK5VgnIwxi9ewPWvoo&state=eyJuZXh0X3VybCI6Imh0dHBzOi8vZGV2NC40bmt3ZWIuY29tL2F1dGhvcml6ZWQtY2xpZW50Iiwibm9uY2UiOiI0YzBiZDM1NGI5MGU5YjdlYzQ3ZDBjMDhmMGE2MDVlOSIsInRzIjoxNzU4NzQ2MjgzNzk3fQ.5LPB6OUdD2SS246Qr-FGx5DiYmP68PyYyg6Vyzso8yQ - 500 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:127.0.0.1', + method: 'GET', + url: '/authorized-client?code=eyzP3g1U9rR_eU8posVgD-XrJHNyhgcf7Act7o2BLu24p1Z5BvQc_29RVrF8CKkZ5JXxxP0elc3pSUeO9-99lH2VV6WKGYx2e4vhujqbV-AtEmp9w4LIUf0DrVuGmqhSmBlCXOxeLhkkxnXTPB-JFd-YopFGX8swSYqLMWlGsx9CgMx2'... 652 more characters, + userAgent: 'got (https://github.com/sindresorhus/got)' + }, + requestId: 'req_1758781529528_qg4q9ir00', + response: { + statusCode: 500 + } +} +❌ [ERROR] 2025-09-25T06:28:57.584Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:81.171.72.226', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (x11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' + }, + requestId: 'req_1758781737583_q4bpnrxk2', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:49:57.531Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:104.199.70.154', + method: 'GET', + url: '/', + userAgent: 'python-requests/2.32.5' + }, + requestId: 'req_1758782997531_0zmjoeq82', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:51:42.141Z HTTP GET /api/.env - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:92.243.24.12', + method: 'GET', + url: '/api/.env', + userAgent: 'python-httpx/0.28.1' + }, + requestId: 'req_1758783102140_888kx8m6x', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:53:04.960Z HTTP GET /api/env/ - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:92.243.24.12', + method: 'GET', + url: '/api/env/', + userAgent: 'curl/8.14.1' + }, + requestId: 'req_1758783184959_ugsusza8l', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:53:12.211Z HTTP GET /api/env/ - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:92.243.24.12', + method: 'GET', + url: '/api/env/', + userAgent: 'curl/8.14.1' + }, + requestId: 'req_1758783192211_e45up7x8m', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:53:24.053Z HTTP GET /api/env - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:92.243.24.12', + method: 'GET', + url: '/api/env', + userAgent: 'curl/8.14.1' + }, + requestId: 'req_1758783204052_h5b9hx7d0', + response: { + statusCode: 404 + } +} +ℹ️ [INFO] 2025-09-25T06:53:31.573Z HTTP POST /api/v1/idnot/state - 200 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 54, + request: { + ip: '::ffff:92.243.24.12', + method: 'POST', + url: '/api/v1/idnot/state', + userAgent: 'curl/8.14.1' + }, + requestId: 'req_1758783211516_py5ht13ah', + response: { + statusCode: 200 + } +} +❌ [ERROR] 2025-09-25T06:56:51.362Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 1, + request: { + ip: '::ffff:204.76.203.219', + method: 'GET', + url: '/', + userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46' + }, + requestId: 'req_1758783411361_ds9rjhqqp', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T06:58:50.397Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:91.224.92.139', + method: 'GET', + url: '/', + userAgent: 'Hello World' + }, + requestId: 'req_1758783530397_qbysquyad', + response: { + statusCode: 404 + } +} +❌ [ERROR] 2025-09-25T07:06:06.021Z HTTP GET / - 404 +──────────────────────────────────────────────────────────────────────────────── +{ + duration: 0, + request: { + ip: '::ffff:45.135.193.100', + method: 'GET', + url: '/', + userAgent: undefined + }, + requestId: 'req_1758783966020_zx4c7y6xl', + response: { + statusCode: 404 + } +} diff --git a/logs/build_20250925_085623.out b/logs/build_20250925_085623.out new file mode 100644 index 0000000..f838d17 --- /dev/null +++ b/logs/build_20250925_085623.out @@ -0,0 +1 @@ +bash: ligne 1: npm : commande introuvable diff --git a/logs/server.pid b/logs/server.pid index 50d4fdc..48931ec 100644 --- a/logs/server.pid +++ b/logs/server.pid @@ -1 +1 @@ -4095405 +4104714 diff --git a/src/controllers/idnot.controller.ts b/src/controllers/idnot.controller.ts index 37e437d..efbcb8e 100644 --- a/src/controllers/idnot.controller.ts +++ b/src/controllers/idnot.controller.ts @@ -33,8 +33,15 @@ export class IdNotController { }); try { + const headers: Record = { + 'Accept': 'application/json' + }; + if (process.env.IDNOT_CONTEXT_HEADER && process.env.IDNOT_CONTEXT_VALUE) { + headers[process.env.IDNOT_CONTEXT_HEADER] = process.env.IDNOT_CONTEXT_VALUE; + } const response = await fetch(`${process.env.IDNOT_ANNUARY_BASE_URL}${result.entiteUrl}?` + searchParams, { - method: 'GET' + method: 'GET', + headers }); if (!response.ok) { diff --git a/src/services/idnot/index.ts b/src/services/idnot/index.ts index a3d49c7..9f4a946 100644 --- a/src/services/idnot/index.ts +++ b/src/services/idnot/index.ts @@ -98,7 +98,13 @@ export class IdNotService { const url = `${IDNOT_ANNUARY_BASE_URL}/api/pp/v2/personnes/${idNot}/rattachements?${searchParams}`; - const response = await fetch(url, { method: 'GET' }); + const headers: Record = { + 'Accept': 'application/json' + }; + if (process.env.IDNOT_CONTEXT_HEADER && process.env.IDNOT_CONTEXT_VALUE) { + headers[process.env.IDNOT_CONTEXT_HEADER] = process.env.IDNOT_CONTEXT_VALUE; + } + const response = await fetch(url, { method: 'GET', headers }); if (!response.ok) { throw new ExternalServiceError('IdNot', `Failed to fetch rattachements: ${response.status} ${response.statusText}`); } @@ -119,7 +125,13 @@ export class IdNotService { const url = `${IDNOT_ANNUARY_BASE_URL}/api/pp/v2/entites/${idNot}/personnes?` + searchParams; - const response = await fetch(url, { method: 'GET' }); + const headers: Record = { + 'Accept': 'application/json' + }; + if (process.env.IDNOT_CONTEXT_HEADER && process.env.IDNOT_CONTEXT_VALUE) { + headers[process.env.IDNOT_CONTEXT_HEADER] = process.env.IDNOT_CONTEXT_VALUE; + } + const response = await fetch(url, { method: 'GET', headers }); if (!response.ok) { throw new ExternalServiceError('IdNot', `Failed to fetch office rattachements: ${response.status} ${response.statusText}`); } @@ -137,7 +149,13 @@ export class IdNotService { key: IDNOT_API_KEY }); - const response = await fetch(`${IDNOT_API_BASE_URL}/api/pp/v2/rattachements/${profileIdn}?` + searchParams, { method: 'GET' }); + const headers: Record = { + 'Accept': 'application/json' + }; + if (process.env.IDNOT_CONTEXT_HEADER && process.env.IDNOT_CONTEXT_VALUE) { + headers[process.env.IDNOT_CONTEXT_HEADER] = process.env.IDNOT_CONTEXT_VALUE; + } + const response = await fetch(`${IDNOT_API_BASE_URL}/api/pp/v2/rattachements/${profileIdn}?` + searchParams, { method: 'GET', headers }); if (!response.ok) { throw new ExternalServiceError('IdNot', `Failed to fetch user data: ${response.status} ${response.statusText}`); } @@ -155,7 +173,13 @@ export class IdNotService { key: IDNOT_API_KEY }); - const response = await fetch(`${IDNOT_API_BASE_URL}${locationsUrl}?` + searchParams, { method: 'GET' }); + const headers: Record = { + 'Accept': 'application/json' + }; + if (process.env.IDNOT_CONTEXT_HEADER && process.env.IDNOT_CONTEXT_VALUE) { + headers[process.env.IDNOT_CONTEXT_HEADER] = process.env.IDNOT_CONTEXT_VALUE; + } + const response = await fetch(`${IDNOT_API_BASE_URL}${locationsUrl}?` + searchParams, { method: 'GET', headers }); if (!response.ok) { throw new ExternalServiceError('IdNot', `Failed to fetch office location data: ${response.status} ${response.statusText}`); }