Issues with 8000 port in links and address lookups

10 views
Skip to first unread message

Thomas Wright

unread,
Apr 7, 2024, 10:25:53 AMApr 7
to FixMyStreet
Hi all,

I've just spun up a new instance of fixmystreet at https://fixmybsresort.pt/ and I'm having a couple of issues

Issue 1:
Certain links on the homepage are including the :8000 port.
Namely the "Go" and "use my location" links on the homepage when searching for an address.

The menu links to Your account, All reports, etc all work normally.

Is this because I'm still using the default cobrand or did I mess something up in my general.yml?

8000-port.png

Here's the relevant part of my general.yml
# The base URL of the install.
# Use the below if you're using the Catalyst development server
#   BASE_URL: 'http://localhost:3000'
SECURE_PROXY_SSL_HEADER: [ 'X-Forwarded-Proto', 'https' ]

I also tried 

and:

Which all have the same issue.
I know the site is reading my general.yml file since I've managed to change the suggested road names.

Issue 2:
If I remove the 8000 port from the URL like so:
I get one of two errors:
Bad generation specified
or sometimes:
That location does not appear to be covered by a council; perhaps it is offshore or outside the country. Please try again.

It's most odd to me that if I refresh the page with the same address I get a different error, it seems random.

Here's my general.yml config for the mapit settings:
MAPIT_TYPES: [ 'O08' ]
MAPIT_ID_WHITELIST: [ 1037425 ]
MAPIT_GENERATION: 8
MAPIT_TYPES_CHILDREN: ''
GEOCODER: 'OSM'
GEOCODING_DISAMBIGUATION:
  bounds: [ 39.37381, -9.25507, 39.38737, -9.22781 ]
MAP_TYPE: 'OSM'

I'm trying to setup the only available area as my local one which according to mapit is available in generations 8-10 https://global.mapit.mysociety.org/area/1037425.html
I've tried MAPIT_GENERATION as 8, 9, and 10 and I get the same results.
I also get the same results if I comment out the GEOCODING_DISAMBIGUATION

I've got a body setup with the "Areas Covered" as Vau (1037425 in my whitelist)
body-area.png

Message has been deleted

Thomas Wright

unread,
Apr 8, 2024, 1:16:06 PMApr 8
to FixMyStreet, Thomas Wright
Figured out the issue with the port 8000 appearing around everywhere.
I needed to edit the nginx.conf-docker file and change the line
proxy_set_header Host $host:8000; 
to:
proxy_set_header Host $host;

Reply all
Reply to author
Forward
0 new messages