[GeoNode-users] Geoserver login redirects to localhost
Segura, German
German.Segura at icf.com
Wed Nov 22 12:51:38 PST 2023
Hi all, when trying to login into the geoserver (https://geo.511mobility.org/geoserver ) after clicking the “login” button I’ve been redirected to this address http://localhost/geoserver/j_spring_security_check
I checked my configuration file, and I don’t see any URL with localhost, other login pages work just fine, any idea? Any other configuration file that I need to modify? Thank you.
Architecture big picture: AWS EC2 instance with Docker + ELB Balancer
Configuration
DOCKERHOST=
DOCKER_HOST_IP=
DOCKER_ENV=production
DOCKER_API_VERSION="1.24"
BACKUPS_VOLUME_DRIVER=local
C_FORCE_ROOT=1
FORCE_REINIT=false
INVOKE_LOG_STDOUT=true
SITEURL=http://geo.511mobility.org
NGINX_BASE_URL=http://geo.511mobility.org
ALLOWED_HOSTS="['django', '*', 'localhost','172.31.33.184','https://geo.511mobility.org','geo.511mobility.org']"
# Data Uploader
DEFAULT_BACKEND_UPLOADER=geonode.importer
TIME_ENABLED=True
MOSAIC_ENABLED=False
HAYSTACK_SEARCH=False
HAYSTACK_ENGINE_URL=http://elasticsearch:9200/
HAYSTACK_ENGINE_INDEX_NAME=haystack
HAYSTACK_SEARCH_RESULTS_PER_PAGE=200
# #################
# nginx
# HTTPD Server
# #################
GEONODE_LB_HOST_IP=geo.511mobility.org
GEONODE_LB_PORT=80
PUBLIC_PORT=80
HTTP_HOST=geo.511mobility.org
HTTPS_HOST=
HTTP_PORT=80
HTTPS_PORT=
RESOLVER=127.0.0.11
# #################
# geoserver
# #################
GEOSERVER_WEB_UI_LOCATION=https://geo.511mobility.org/geoserver/
GEOSERVER_PUBLIC_LOCATION=https://geo.511mobility.org/geoserver/
GEOSERVER_LOCATION=http://geoserver:8080/geoserver/
OGC_REQUEST_TIMEOUT=30
OGC_REQUEST_MAX_RETRIES=1
OGC_REQUEST_BACKOFF_FACTOR=0.3
OGC_REQUEST_POOL_MAXSIZE=10
OGC_REQUEST_POOL_CONNECTIONS=10
# Java Options & Memory
ENABLE_JSONP=true
outFormat=text/javascript
GEOSERVER_JAVA_OPTS=-Djava.awt.headless=true -Xms2G -Xmx4G -Dgwc.context.suffix=gwc -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=/var/log/jvm.log -XX:PerfDataSamplingInterval=500 -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:-UseGCOverheadLimit -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4 -Dfile.encoding=UTF8 -Djavax.servlet.request.encoding=UTF-8 -Djavax.servlet.response.encoding=UTF-8 -Duser.timezone=GMT -Dorg.geotools.shapefile.datetime=false -DGS-SHAPEFILE-CHARSET=UTF-8 -DGEOSERVER_CSRF_DISABLED=true -DPRINT_BASE_URL=http://localhost/geoserver/pdf -DALLOW_ENV_PARAMETRIZATION=true -Xbootclasspath/a:/usr/local/tomcat/webapps/geoserver/WEB-INF/lib/marlin-0.9.3-Unsafe.jar -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine
# Session/Access Control
LOCKDOWN_GEONODE=False
X_FRAME_OPTIONS="SAMEORIGIN"
SESSION_EXPIRED_CONTROL_ENABLED=True
DEFAULT_ANONYMOUS_VIEW_PERMISSION=True
DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION=True
CORS_ALLOW_ALL_ORIGINS=True
GEOSERVER_CORS_ENABLED=True
GEOSERVER_CORS_ALLOWED_ORIGINS=*
GEOSERVER_CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,HEAD,OPTIONS
GEOSERVER_CORS_ALLOWED_HEADERS=*
# OAuth2
OAUTH2_API_KEY=
OAUTH2_CLIENT_ID=1CwjU88xZmCnqpc
OAUTH2_CLIENT_SECRET=joLZ4CXjGeTZdzM
# GeoNode APIs
API_LOCKDOWN=False
TASTYPIE_APIKEY=
# Monitoring
MONITORING_ENABLED=False
MONITORING_DATA_TTL=365
USER_ANALYTICS_ENABLED=True
USER_ANALYTICS_GZIP=True
CENTRALIZED_DASHBOARD_ENABLED=False
MONITORING_SERVICE_NAME=local-geonode
MONITORING_HOST_NAME=geonode
[A picture containing object, clock Description automatically generated]
GERMAN SEGURA, Sr Java Developer
icf.com | LinkedIn<https://www.linkedin.com/company/icf-international>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20231122/78b648a2/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 6699 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20231122/78b648a2/attachment-0001.jpg>
More information about the geonode-users
mailing list