1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-16 21:23:37 +00:00

update nginx config as it will need to know the IPs it can listen on to avoid conflict with the fast server

هذا الالتزام موجود في:
Adam Cooke
2017-05-05 11:54:39 +01:00
الأصل d4fd6b9925
التزام 308372d3fd

عرض الملف

@@ -1,13 +1,13 @@
server { server {
listen [::]:80; listen YOUR_IPV4_IP:80;
listen 0.0.0.0:80; listen [YOUR_IPV6_IP]:80;
server_name postal.yourdomain.com; server_name postal.yourdomain.com;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
server { server {
listen [::]:443 ssl; listen YOUR_IPV4_IP:443 ssl;
listen 0.0.0.0:443 ssl; listen [YOUR_IPV6_IP]:443 ssl;
root /opt/postal/app/public; root /opt/postal/app/public;
server_name postal.yourdomain.com; server_name postal.yourdomain.com;
ssl_certificate ssl/postal.crt; ssl_certificate ssl/postal.crt;