scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 91 forks source link

Page does not load when accessing using DNS. #195

Closed nzuhdi closed 7 years ago

nzuhdi commented 7 years ago

Hi,

I did Realms wiki installation using IP address. Later I point it to a DNS. Accessing using IP address is good, the wiki pages load fine. But accessing using DNS is not loading the wiki page. It just showed blank page with Realm header showing. My page is at zuhdi.org (128.199.237.114)

root@aloadae:~/realms-wiki# cat realms-wiki.json
{
    "ALLOW_ANON": false,
    "BASE_URL": "http://zuhdi.org/",
    "CACHE_TYPE": "simple",
    "DB_URI": "sqlite:////root/data/wiki.db",
    "PORT": 80,
    "REGISTRATION_ENABLED": false,
    "SEARCH_TYPE": "simple",
    "SECRET_KEY": "hqiqMLEcuN32NpFcq2wBc5BTG7yjzrQEjvLHUpS4czI1XIU80u0u94IjKQGmWwaq",
    "SITE_TITLE": "zuhdi.org",
    "WIKI_PATH": "/root/data/wiki"
}
root@aloadae:~/realms-wiki# cat /etc/systemd/system/realms.service
[Unit]
Description=Realms

[Service]
User=root
Group=root
Type=forking

ExecStart=/root/realms-wiki/.venv/bin/python /root/realms-wiki/.venv/bin/gunicorn \
--name realms-wiki     \
--access-logfile -     \
--error-logfile -      \
--worker-class gevent  \
--workers 5            \
--bind 0.0.0.0:80      \
--user root            \
--group root           \
--chdir /root/realms-wiki/ \
'realms:create_app()'

Restart=on-failure
LimitNOFILE=65335
WorkingDirectory=/root/realms-wiki/.venv
Environment=PATH=/root/realms-wiki/.venv/bin:/usr/local/bin:/usr/bin:/bin:$PATH
Environment=LC_ALL=en_US.UTF-8
Environment=GEVENT_RESOLVER=ares

[Install]
WantedBy=multi-user.target
nzuhdi commented 7 years ago

Nevermind that. I think the DNS does not fully resolved yet, after few hours it is fix.