NEXTCLOUD: need help with authorization and timeout error while trying to obtain certificate

Do you mean router firewall? I cant even access either from other machine.

This is the output of service nginx status
root@cloud:~# service nginx status
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-10-16 12:56:12 EDT; 23h ago
Docs: http://nginx.org/en/docs/
Process: 3210 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 3217 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 3214 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 3218 (nginx)
CGroup: /system.slice/nginx.service
├─3218 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.con
├─3219 nginx: worker process
├─3220 nginx: worker process
├─3221 nginx: worker process
├─3222 nginx: worker process
└─3223 nginx: cache manager process

Oct 16 12:56:12 cloud systemd[1]: Starting nginx - high performance web server…
Oct 16 12:56:12 cloud nginx[3214]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Oct 16 12:56:12 cloud nginx[3214]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Oct 16 12:56:12 cloud systemd[1]: Started nginx - high performance web server.

Output of systemctl status nginx
root@cloud:~# systemctl status nginx
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-10-16 12:56:12 EDT; 23h ago
Docs: http://nginx.org/en/docs/
Process: 3210 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 3217 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 3214 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 3218 (nginx)
CGroup: /system.slice/nginx.service
├─3218 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.con
├─3219 nginx: worker process
├─3220 nginx: worker process
├─3221 nginx: worker process
├─3222 nginx: worker process
└─3223 nginx: cache manager process

Oct 16 12:56:12 cloud systemd[1]: Starting nginx - high performance web server…
Oct 16 12:56:12 cloud nginx[3214]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Oct 16 12:56:12 cloud nginx[3214]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Oct 16 12:56:12 cloud systemd[1]: Started nginx - high performance web server.