209 похожих чатов

А тут кстати в доках про какой то private-key написано

его тоже на хостинге брать?

3 ответов

24 просмотра

fullchain, privkey два необходимых ключа, которые выдаются тебе после того, как центр сертификации доменов DNS или хрен знает что там за сервис - выдаст тебе ответ

# Первый сервер обрабатывает HTTP-запросы и перенаправляет их на HTTPS server { listen 80 default_server; server_name example.club; return 301 https://$host$request_uri; } # Второй сервер обрабатывает HTTPS-запросы server { listen 443 ssl; server_name example.club; # Пути к SSL-сертификатам ssl_certificate /etc/letsencrypt/live/example.club/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.club/privkey.pem; # Конфигурация локации location / { # Проксирование запросов на локальное приложение proxy_pass http://127.0.0.1:3001; proxy_http_version 1.1; # Заголовки для WebSocket и других 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-Host $server_name; proxy_cache_bypass $http_upgrade; } } # Третий сервер для другого поддомена или API server { listen 443 ssl; server_name api.example.club; # Пути к SSL-сертификатам для API ssl_certificate /etc/letsencrypt/live/api.example.club/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/api.example.club/privkey.pem; # Конфигурация локации для API location / { proxy_pass http://127.0.0.1:3002; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }

но раз у тебя на двух разных машинах фронт и бэк, то тебе это не пойдет

Похожие вопросы

Обсуждают сегодня

For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
I get confused when people talk about the ‘bull market’ and the ‘next bull market’ as if anyone really has a clue what’s really going on in the world. First of all - there i...
Shah
1
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
@marycamacho @NATHANLENAE @popachubby It was said that HOT will be used for hosting payments. But HOT is ERC20 based. So slow and high paying. The ERC network does not seem ve...
Aragorn
17
Welcome Mary Clark to the Pirate Chain chat Matey ☠️ PIRATE CHAIN is a cryptocurrency for private anonymous transactions. Official website https://piratechain.com ⚠️ Beware...
Rose
1
Another way to think about it is like this: let's say we sell $100m of FXB2029 and another $100m of FXB2055 and we buy $200m of ETH with it. Do you think that ETH price will b...
Sam Kazemian ¤⛓️¤
20
[kilv3r] Hey everyone! You probably saw the AMA today, and are aware that CyberVerse has made it into the finalists list to be integrated on Ronin blockchain, that would be th...
DiscordBridge
3
Is alice project is only a game or studio as well?
Hana
15
Карта сайта