Publish on other than HTTP port (for e.g. 8082)

By default geonode will be installed in the port 80 (i.e. HTTP) port. But what if you want to change the port of the geonode to other than HTTP port (For this example, I am taking 8082 port)? We need to edit couple of things in the web configuration. First things is, we need to update the /etc/uwsgi/apps-enabled/geonode.ini file,

sudo vi /etc/uwsgi/apps-enabled/geonode.ini

Edit the following lines,

env = SITE_HOST_NAME=localhost:8082
env = SITEURL=http://localhost:8082

SITE_HOST_NAME=localhost
SITE_HOST_PORT=8082
GEOSERVER_WEB_UI_LOCATION=http://localhost:8082/geoserver/
GEOSERVER_PUBLIC_LOCATION=http://localhost:8082/geoserver/

After that we need to update the /etc/nginx/sites-enabled/geonode file,

sudo vi /etc/nginx/sites-enabled/geonode

Edit the following lines,

server {
    listen 8082 default_server;
     listen [::]:8082 default_server;

OAuth2 Fixtures Update and Base URL Migration

TBD

GeoNode Security Subsystem

TBD

OAuth2 Tokens and Sessions

TBD (ref to OAuth2 Access Tokens)