How to set Application Port on FreeBSD/nginx/Passenger setup?
I recently set up a redmine instance on a FreeBSD 11.2 jail using nginx, MariaDB and Passenger, generally following https://forums.freebsd.org/threads/howto-redmine-nginx-passenger-postgresql.41256/ (obviously diverging from the database part and trying to mitigate a few compiling errors). The setup seems to be working via the web interface, but I cannot connect to it using Apps. The reason seems to be that the Apps expect it to bind to port 3000, but redmine keeps claiming a random port after every restart of nginx:
redmine# telnet localhost 3000 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused Trying ::1... telnet: connect to address ::1: Connection refused telnet: Unable to connect to remote host redmine# sockstat | grep redmine redmine ruby24 67385 9 stream /tmp/passenger.NeH1Abk/apps.s/ruby.rRc7HOrmVLCpErItwe3QxJd5XRge5paDfeWgHoiJFffnIfZVOuEfdVnJA35 redmine ruby24 67385 10 tcp4 10.0.0.5:27999 *:* redmine ruby24 67385 13 stream /tmp/passenger.NeH1Abk/apps.s/ruby.rRc7HOrmVLCpErItwe3QxJd5XRge5paDfeWgHoiJFffnIfZVOuEfdVnJA35 redmine ruby24 67385 14 tcp6 fd0b:9867:5eb1::3000:28000 fd0b:9867:5eb1::3306:3306
I cannot find any settings that seem to apply to my problem. Neither does there seem to be any startup script in /etc/rc.d or /usr/local/etc/rc.d. So, how can I tell redmine, which port to listen on?
My ruby environment is as follows:
redmine# rails_env=production bin/about sh: svn: not found sh: darcs: not found sh: hg: not found sh: cvs: not found sh: bzr: not found Environment: Redmine version 3.4.9.stable Ruby version 2.4.5-p335 (2018-10-18) [amd64-freebsd11] Rails version 22.214.171.124 Environment production Database adapter Mysql2 SCM: Git 2.20.1 Filesystem Redmine plugins: no plugin installed