Deploying Internet Accessible Fab Manager on Local Machine

J’ai ecris cette question en Anglais, mais vous pouvez me repondre en francais si ca vous convient mieux!

Hello and thanks a lot for making this great tool!
I’m trying to deploy it for our Student Society as a mean to book rooms and rent equipment, and I was trying to deploy it on a local Mac Mini (Late 2012, 2 core cpu, 4 Gb Ram). In order to test it before, I’m trying the deployment on a Debian VM on Virtual Box.

When installing, I passed 127.0.0.1 as the domain (find my full config at the bottom) - I can now access Fab Manager at 127.0.0.1, but when I try to login with the admin information I provided while installing, I get Unprocessable entry.

Here is my Firefox Error messages:

Authentication failed: {"data":{"status":422,"error":"Unprocessable Entity"},"status":422,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/users/sign_in.json","data":{"user":{"email":"aliotique@gmail.com","password":"zxcczxcc"}},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8","X-XSRF-TOKEN":"AQf5jRZfgJF8KvwuF83+K/yzbovj/YVZ8jUPwQKlCtCsYTaqMpveAYj3Jr3MsPk4TzE3043IMp6MP7RQCCqFdA=="},"cached":false},"statusText":"Unprocessable Entity","xhrStatus":"complete"} application.js.erb:438:22
    login application.js.erb:438
    Angular 15
    jQuery 8
    Angular 24

Firefox Session Cookie:

Nginx Conf:

debian@debian10:/apps/fabmanager/config$ cat nginx/fabmanager.conf
upstream puma {
  server fabmanager:3000;
}

server {
  listen 80;
  server_name 127.0.0.1;
  # ssl on;
  root /usr/src/app/public;

  location ^~ /packs/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @puma;
  location @puma {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://puma;
  }

  client_max_body_size 4G;
  keepalive_timeout 10;

  error_page 500 502 504 /500.html;
  error_page 503 @503;

  # Return a 503 error if the maintenance page exists.
  if (-f /usr/src/app/public/maintenance.html) {
    return 503;
  }

  location @503 {
    # Serve static assets if found.
    if (-f $request_filename) {
      break;
    }

    # Set root to the shared directory.
    root /usr/src/app/public/;
    rewrite ^(.*)$ /maintenance.html break;
  }

  location /.well-known/acme-challenge {
    root /etc/letsencrypt/webrootauth;
    default_type "text/plain";
  }

  # no spam bot
  if ($http_referer ~* (guardlink.org|free-share-buttons|social-buttons|buy-cheap-online.info|social-buttons.com|free-share-buttons.com|darodar.com|blackhatworth.com|hulfingtonpost.com|priceg.com|semalt.com|imaspammer.com|iedit.ilovevitaly.com|7makemoneyonline.com|iedit.ilovevitaly.com|7makemoneyonline.com|gamersyde.com|iloveitaly.com|econom.co|semalt.com|forum.topic44637676.darodar.com|darodar.com|iskalko.ru|ilovevitaly.ru|ilovevitaly.com|ilovevitaly.co|o-o-8-o-o.ru|o-o-6-o-o.ru|buttons-for-website.com|semalt.semalt.com|cenoval.ru|priceg.com|darodar.com|cenokos.ru|seoexperimenty.ru|gobongo.info|vodkoved.ru|adcash.com|websocial.me|cityadspix.com|luxup.ru|ykecwqlixx.ru|superiends.org|slftsdybbg.ru|edakgfvwql.ru|socialseet.ru|screentoolkit.com|econom.co|semalt.com|savetubevideo.com|shopping.ilovevitaly.com|iedit.ilovevitaly.com|forum.topic52548358.darodar.com|forum.topic53813291.darodar.com|share-buttons.com|event-tracking.com|success-seo.com|free-floating-buttons.com|get-free-social-traffic.com|chinese-amezon.com|get-free-traffic-now.com|free-social-buttons.com|videos-for-your-business.com)) { return 403; }

}


My ENV file

debian@debian10:/apps/fabmanager/config$ cat env
POSTGRES_HOST=postgres
POSTGRES_USERNAME=postgres
REDIS_HOST=redis
ELASTICSEARCH_HOST=elasticsearch

SECRET_KEY_BASE=56b2ada422bfca92581a694b44f6259f3c217097786899d643f456ba55790aafe40c80ea142dd6c09b5c7226093ee707d6b46d98c3446b4942eccd55b5bf6b1e

SLOT_DURATION=60
FEATURE_TOUR_DISPLAY=once

DEFAULT_HOST=127.0.0.1
DEFAULT_PROTOCOL=http

DELIVERY_METHOD=smtp
SMTP_ADDRESS=smtp-relay.sendinblue.com
SMTP_PORT=587
SMTP_USER_NAME=
SMTP_PASSWORD=
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_OPENSSL_VERIFY_MODE=
SMTP_TLS=false

RAILS_LOCALE=en
APP_LOCALE=en
MOMENT_LOCALE=en
SUMMERNOTE_LOCALE=en-US
ANGULAR_LOCALE=fr-fr
FULLCALENDAR_LOCALE=en
INTL_LOCALE=fr-FR
INTL_CURRENCY=EUR

POSTGRESQL_LANGUAGE_ANALYZER=english

TIME_ZONE=Paris
WEEK_STARTING_DAY=monday
D3_DATE_FORMAT=%d/%m/%y
UIB_DATE_FORMAT=dd/MM/yyyy
EXCEL_DATE_FORMAT=dd/mm/yyyy

OPENLAB_BASE_URI=https://openprojects.fab-manager.com
OPENLAB_SSL_VERIFY=true

LOG_LEVEL=debug
DISK_SPACE_MB_ALERT=1024
ADMINSYS_EMAIL=
ALLOW_INSECURE_HTTP=false

# 5242880 = 5 megabytes
MAX_IMPORT_SIZE='5242880'
# 10485760 = 10 megabytes
MAX_IMAGE_SIZE='10485760'
# 20971520 = 20 megabytes
MAX_CAO_SIZE='20971520'

Thanks for looking

P.S.
For context, I was looking to make FM available at port 3000 so then I can use this tool called BoringProxy to expose that port to the internet under a subdomain. The above tool takes care of SSL Ceritficate itself so I don’t need any configured.

Hi @aliotique,

Can you try adding ALLOW_INSECURE_HTTP to your ENV file ?