Prompt Detail:
Lo siento, cometí un error en mi respuesta anterior. El archivo de configuración de Nginx se vería así para tener las dos páginas web psicotrading.co con IP 5.161.93.75 y clannishfx.com con certificados SSL emitidos con Certbot en una misma instancia de Odoo 15:
rubyupstream psicotrading {
server 5.161.93.75:8069;
}
upstream clannishfx {
server 127.0.0.1:8069;
}
server {
listen 80;
server_name psicotrading.co;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name psicotrading.co;
ssl_certificate /etc/letsencrypt/live/psicotrading.co/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/psicotrading.co/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://psicotrading;
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-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
client_max_body_size 50m;
}
}
server {
listen 80;
server_name clannishfx.com www.clannishfx.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name clannishfx.com www.clannishfx.com;
ssl_certificate /etc/letsencrypt/live/clannishfx.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/clannishfx.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://clannishfx;
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-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
client_max_body_size 50m;
}
}
Este archivo de configuración crea dos servidores proxy que se vinculan con las páginas web psicotrading.co y clannishfx.com. También
Add a comment