Git Product home page Git Product logo

newcollabapi's Introduction

newcollabapi

Collab service for RedTeam

Local Devlopement requirement

  1. Ubuntu Linux system
  2. VS Code
  3. Docker
  4. Postman
  5. Postgresql Admin Tool for query browser
  6. GitHub Login for Accessing Repository

Postgresql Docker compose file:

================================= version: '3.1'

services:

db: image: postgres restart: always environment: POSTGRES_PASSWORD: HackM3 PGDATA: /var/lib/postgresql/data/pgdata

volumes:
  - ./db:/var/lib/postgresql/data

ports:
  - 1486:1486
  - 5432:5432

Docker file END

Apache Webserver Docker compose file:

======================================= version: '3' services: swiftent_apache: image: digite/swiftent-apache:latest container_name: swiftent_apache hostname: swiftent_apache
environment:

Set Timezone to container

Please refer link for Timezone code need to pass as per you location. For example India= Asia/Kolkata

  - TZ=Asia/Kolkata

MOUNT THE PATH FOR PERSISTANT STORAGE, REPLACE THE PATH WITH YOUR MOUNT PATH.

EXAMPLE:

:/opt/configuration

:/var/log/apache2

volumes:
  - ./conf:/opt/configuration
  - ./log:/var/log/apache2
  - /data/Pythonwork/redteam/newcollabapi/frontend:/var/www/html
ports:
  - 80:80
  - 443:443

Docker file END

Apache HTTPD configuration file Name: app-http.conf

Note: Abouve config File name should be added into 'apache2.conf' in your mounted path.

===========================================================================

    <VirtualHost _default_:80>

ServerAdmin [email protected]

ServerName swift.digite.com

            LogFormat "%h %t \"%r\" %>s %p %b \"%{Referer}i\" \"%{User-Agent}i\" %{ms}T" nimblelog
            ErrorLog ${APACHE_LOG_DIR}/app-error.log
            #CustomLog ${APACHE_LOG_DIR}/app-access.log nimblelog
            CustomLog "|/usr/bin/rotatelogs -l ${APACHE_LOG_DIR}/app-access-%d-%m-%Y-%H-%M-%S.log 86400" nimblelog

            <Proxy *>
              Order deny,allow
              Allow from all
           </Proxy>                                

Static content configuration

DocumentRoot /var/www/html

<Directory /var/www/html> Options -Indexes AllowOverride All Order allow,deny Allow from all

ErrorDocument 503 /UnplannedDowntime.html

Enable gzip compression

SetOutputFilter DEFLATE SetInputFilter DEFLATE SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary SetEnvIfNoCase Request_URI .(?:pdf|exe|zip)$ no-gzip dont-vary

    </VirtualHost> 

Apache Configuration END

newcollabapi's People

Contributors

dongrenaresh avatar deenaik avatar

Watchers

 avatar hsolanki avatar

Forkers

nareshdongre

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.