Setting up Parse-Server Docker On Linux and Apache + Let's Encrypt

Hello, i am trying to setup a instance of Parse-Server from docker but i am getting this error on apache

[Fri Jul 31 00:46:09.602657 2020] [proxy:error] [pid 2888] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:1337 (localhost) failed
[Fri Jul 31 00:46:09.602668 2020] [proxy_http:error] [pid 2888] [client x.x.x.x:59450] AH01114: HTTP: failed to make connection to backend: localhost

Vhost:

<IfModule mod_ssl.c>
<VirtualHost *:443>
#ServerAdmin [email protected]
ServerName www.sync.example.org
ServerAlias sync.example.org

ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:1337/parse
ProxyPassReverse / http://localhost:1337/parse
#SSLProxyEngine on

<Proxy *>
Require all granted
</Proxy>

# if not specified, the global error log is used
ErrorLog /var/log/apache2/example/sync/error_log
CustomLog /var/log/apache2/example/sync/access_log combined

# don't loose time with IP address lookups
HostnameLookups Off
# needed for named virtual hosts
UseCanonicalName Off
# configures the footer on server-generated documents
ServerSignature On

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/sync.example.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sync.example.org/privkey.pem
</VirtualHost>
</IfModule>

Docker

docker run -t -d --rm --network=host --name parse-server parseplatform/parse-server --appName Sync --appId appid --masterKey masterKey --clientKey clientKey --fileKey fileKey --graphQLPath --databaseURI postgres://sync:[email protected]/sync --serverURL http://sync.astian.org:1337/parse --publicServerURL http://sync.example.org --javascriptKey javascriptKey --restAPIKey restAPIKey --verbose

And i am getting the next error when i go to the publicURL (http://sync.example.org)

{"error":"unauthorized"}
  • My firewall have the port 1337 open.
  • i can access to the URL outside of the server ecosystem.

And when i tried to connect the app (android) to the parse-server instance got this:

2020-07-30 22:47:46.442 21467-21535/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:47:46.442 21467-21535/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:47:55.453 21467-21542/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:47:55.453 21467-21542/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:04.369 21467-21549/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:04.370 21467-21549/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:06.311 21467-21552/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:06.311 21467-21552/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:09.804 21467-21559/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:09.804 21467-21559/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:16.374 21467-21562/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:16.375 21467-21562/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:29.038 21467-21565/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:29.038 21467-21565/com.loginapp.creativeteam.tn.loginapplication W/oginapplicatio: Accessing hidden method Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V (blacklist,core-platform-api, reflection, denied)
2020-07-30 22:48:29.410 21467-21467/com.loginapp.creativeteam.tn.loginapplication D/CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10154; state: DISABLED