Hello.
Following this
thread, I have decided to purchase a domain to try to make things a bit easier and normal.
So, I bought a domain in ahnames.com (they accept Bitcoin as payment,
![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
). The domain site provides DNSs and if I use them, things seems to work.
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.ibb.co%2Ftc01KnH%2Fimage.png&t=665&c=VPl9lGZe95mMlA)
Then, in the DNS records I have the following:
IMAGE REMOVED
Those IPv6 addresses are there because I'm not sure which ones I should use, therefore I used all that are not
temporary.
So, if anyone tries to access those 2 sites, rtl.bitcoin.... and lnbits.bitcoin...., I think they work, on ports 3002 and 5001, respectively.
So, I presume my nginx configuration is correct. I leave it here too:
$ cat /etc/nginx/conf.d/lnbits.bitcoin-cryptoanarchy.com.conf
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
server {
listen 5001 ssl http2 default_server;
listen [::]:5001 ssl http2 default_server;
server_name www.lnbits.bitcoin-cryptoanarchy.com lnbits.bitcoin-cryptoanarchy.com;
ssl_certificate /home/<hidden>/certificates/server-cert-signed.pem;
ssl_certificate_key /home/<hidden>/certificates/server-key.pem;
ssl_protocols TLSv1.2 TLSv1.3;
location / {
proxy_pass http://localhost:5000;
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;
}
}
This is the
/etc/nginx/sites-available/default file. This is the only file here and there is the symlink inside
/etc/nginx/sites-enable/default as shown below:
$ ls -lah /etc/nginx/sites-enabled/
total 8.0K
drwxr-xr-x 2 root root 4.0K Apr 7 2021 .
drwxr-xr-x 9 root root 4.0K Aug 30 21:19 ..
lrwxrwxrwx 1 root root 34 Apr 7 2021 default -> /etc/nginx/sites-available/default
So, the above setup seems to work.
However, if I try to setup Cloudflare's DNSs in my domain site, like the picture below:
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.ibb.co%2FLJWHhmT%2Fimage.png&t=665&c=fnnwvLkCD-Qe8A)
and setup a few A and AAAA registers in Cloudflare site, like the picture below:
IMAGE REMOVED
things just break after a couple of hours. Anything works anymore.
Nore: the IPv6 addresses in Cloudflare screenshot don't match my domain site just because I updated the ones in my domain site right before I start writting this thread. But the idea remains. I created those registers to make them to point to my public IP (v4 and v6).
So, what am I doing wrong, after all?
I just hope not being disclosing any security info... :|
EDITED;
Some images removed due to possible security risks... Sorry for that.