- Correction vhosts port 3000: écoute sur 0.0.0.0:3000 et [::]:3000 - Harmonisation directives listen IPv6 pour éviter duplicate options - Configuration Nginx pour accès externe sur port 3000 - Support authentification ID.not via /authorized-client
274 lines
7.4 KiB
Plaintext
274 lines
7.4 KiB
Plaintext
server {
|
|
server {
|
|
listen 80;
|
|
listen 80;
|
|
server_name dev4.4nkweb.com;
|
|
server_name dev4.4nkweb.com;
|
|
location /.well-known/acme-challenge/ {
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/letsencrypt;
|
|
root /var/www/letsencrypt;
|
|
}
|
|
}
|
|
location / {
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3003;
|
|
proxy_pass http://127.0.0.1:3003;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location = /favicon.ico {
|
|
location = /favicon.ico {
|
|
root /home/debian/lecoffre_node/conf/nginx/assets;
|
|
root /home/debian/lecoffre_node/conf/nginx/assets;
|
|
try_files /favicon.ico =404;
|
|
try_files /favicon.ico =404;
|
|
access_log off;
|
|
access_log off;
|
|
expires 30d;
|
|
expires 30d;
|
|
}
|
|
}
|
|
location = /lecoffre {
|
|
location = /lecoffre {
|
|
proxy_pass http://127.0.0.2:3004/lecoffre;
|
|
proxy_pass http://127.0.0.2:3004/lecoffre;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Prefix /lecoffre;
|
|
proxy_set_header X-Forwarded-Prefix /lecoffre;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location /lecoffre/ {
|
|
location /lecoffre/ {
|
|
proxy_pass http://127.0.0.2:3004;
|
|
proxy_pass http://127.0.0.2:3004;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Prefix /lecoffre;
|
|
proxy_set_header X-Forwarded-Prefix /lecoffre;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location /lecoffre/_next/webpack-hmr {
|
|
location /lecoffre/_next/webpack-hmr {
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_buffering off;
|
|
proxy_buffering off;
|
|
proxy_pass http://127.0.0.2:3004/lecoffre/_next/webpack-hmr;
|
|
proxy_pass http://127.0.0.2:3004/lecoffre/_next/webpack-hmr;
|
|
proxy_read_timeout 600s;
|
|
proxy_read_timeout 600s;
|
|
}
|
|
}
|
|
location /lecoffre/_next/ {
|
|
location /lecoffre/_next/ {
|
|
proxy_pass http://127.0.0.2:3004/lecoffre/_next/;
|
|
proxy_pass http://127.0.0.2:3004/lecoffre/_next/;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location = /lecoffre/favicon.ico {
|
|
location = /lecoffre/favicon.ico {
|
|
root /home/debian/lecoffre_node/conf/nginx/assets;
|
|
root /home/debian/lecoffre_node/conf/nginx/assets;
|
|
try_files /favicon.ico =404;
|
|
try_files /favicon.ico =404;
|
|
access_log off;
|
|
access_log off;
|
|
expires 30d;
|
|
expires 30d;
|
|
}
|
|
}
|
|
location /_next/ {
|
|
location /_next/ {
|
|
proxy_pass http://127.0.0.2:3004/_next/;
|
|
proxy_pass http://127.0.0.2:3004/_next/;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location /back/ {
|
|
rewrite ^\/back\/(.*)$ \/api\/\1 break;
|
|
proxy_pass http:\/\/127.0.0.1:8080;
|
|
location /back/ {
|
|
location /back/ {
|
|
rewrite ^\/back\/(.*)$ \/api\/\1 break;
|
|
proxy_pass http:\/\/127.0.0.1:8080;
|
|
location /back/ {
|
|
proxy_pass http://127.0.0.1:8080/back/;
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Connection "";
|
|
proxy_set_header Connection "";
|
|
proxy_buffering off;
|
|
proxy_buffering off;
|
|
}
|
|
}
|
|
location /api/ {
|
|
location /api/ {
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location /blindbit/ {
|
|
location /blindbit/ {
|
|
proxy_pass http://127.0.0.1:8000/;
|
|
proxy_pass http://127.0.0.1:8000/;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location /signer/ {
|
|
location /signer/ {
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_pass http://127.0.0.1:3001/;
|
|
proxy_pass http://127.0.0.1:3001/;
|
|
proxy_read_timeout 600s;
|
|
proxy_read_timeout 600s;
|
|
proxy_buffering off;
|
|
proxy_buffering off;
|
|
}
|
|
}
|
|
location /storage/ {
|
|
location /storage/ {
|
|
proxy_pass http://127.0.0.1:8081/;
|
|
proxy_pass http://127.0.0.1:8081/;
|
|
include /etc/nginx/proxy_params;
|
|
include /etc/nginx/proxy_params;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
location = /ws {
|
|
location = /ws {
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_buffering off;
|
|
proxy_buffering off;
|
|
proxy_pass http://127.0.0.1:8090/;
|
|
proxy_pass http://127.0.0.1:8090/;
|
|
proxy_read_timeout 600s;
|
|
proxy_read_timeout 600s;
|
|
}
|
|
}
|
|
location /ws/ {
|
|
location /ws/ {
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_buffering off;
|
|
proxy_buffering off;
|
|
proxy_pass http://127.0.0.1:8090/;
|
|
proxy_pass http://127.0.0.1:8090/;
|
|
proxy_read_timeout 600s;
|
|
proxy_read_timeout 600s;
|
|
}
|
|
}
|
|
location /_next/webpack-hmr {
|
|
location /_next/webpack-hmr {
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_buffering off;
|
|
proxy_buffering off;
|
|
proxy_pass http://127.0.0.2:3004/_next/webpack-hmr;
|
|
proxy_pass http://127.0.0.2:3004/_next/webpack-hmr;
|
|
proxy_read_timeout 300;
|
|
proxy_read_timeout 300;
|
|
}
|
|
}
|
|
}
|
|
}
|