Skip to content

celec-club/gonetwork2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gonetwork2022

Code source of gonetwork website 2022 http://gonetwork.usthb-celec.com

Install on local

  1. Download the repository.
  2. Change docker-compose.example.yml to docker-compose.yml
  3. Change database configuration : https://github.com/CELEC-USTHB-CLUB/gonetwork2022/blob/main/docker-compose.example.yml#L18
  4. Run docker build and docker-compose up .
  5. log into php image : docker-compose exec php bash
  6. cd site/
  7. change .env.example to .env
  8. Update database config in .env file.
  9. Run composer install & composer dump -o
  10. The application now is running on port 81.

Extra configuration on celec production server .

With HAPROXY we could redirect requests from gonetwork.usthb-celec.com to the application .

frontend http
  bind :80
  mode http
  option httplog
  timeout connect 5000
  timeout client  50000
  timeout server  50000
  acl gonetworkdomain hdr(host) -i gonetwork.usthb-celec.com
  use_backend gonetwork if gonetworkdomain
  default_backend website

backend website
  mode http
  server website 0.0.0.0:81 check

backend gonetwork
  mode http
  server gonetworkweb 0.0.0.0:82 check

About

Code source of gonetwork website 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages