Public | Automated Build

Last pushed: a year ago
Short Description
Slack autoinvite
Full Description

slackin

edit1
https://slack.bity.com

Landing page you can point users to fill in their emails and receive an invite (https://slack.staging.sbex.ch)

Based on (http://rauchg.com/slackin)

How to use

1. Get all files from bitbucket sbex/slackin

cd /root/ && git clone https://bitbucket.org/sbex/slackin.git && cd slackin

2. Build image

 docker build -t slackin .
  1. Run

    docker run -d --name slackin -p 3000:3000 -e SLACK_ORG=sbex -e SLACK_TOKEN=xoxp-15935956177-..... slackin

4. Access it

http://yourip:3000

5. Access it throught haproxy

nano haproxy.conf

default
  option  http-server-close # For slackin websocket connection

frontend https-in
  # Slack
  acl has_slack hdr(host) -i slack.staging.sbex.ch

  use_backend slack if has_slack

backend slack
  option forwardfor # add the X-Forwarded-For header
  http-request set-header X-Forwarded-Port %[dst_port]
  http-request add-header X-Forwarded-Proto https if { ssl_fc }
  server stats {{ hostvars['stats'].ansible_ssh_host }}:3000 maxconn 32

https://slack.staging.sbex.ch

Docker Pull Command
Owner
sbex
Source Repository