Giter Club home page Giter Club logo

acs-ingress's Introduction

ACS Nginx Proxy

A proxy container for ACS deployment with Alfresco Digital Workspace and Sync Service support. If USE_SSL set to true provide ssl cert in ssl/cert.crt and ssl/cert.key

Environment variables

Name Default Description
REPO_URL http://alfresco:8080 Repository URL inside network.
ADW_URL http://digital-workspace Digital Workspace URL inside network.
ACA_URL http://content-app:8080 Sync service URL inside network.
CONTROL_CENTER_URL http://control-center Control Center URL inside network.
SHARE_URL http://share:8080 Share URL inside network.
SYNCSERVICE_URL http://sync-service:9090 Sync service URL inside network.
DISABLE_ADW false Disables ADW if set to "true"
DISABLE_SHARE false Disables Share if set to "true"
DISABLE_SYNCSERVICE false Disables Sync Service if set to "true"
DISABLE_PROMETHEUS false Disables Prometheus if set to "true"
DISABLE_CONTROL_CENTER false Disables ADW Control Center if set to "true"
ENABLE_CONTENT_APP false Enables ACA if set to "true"
ACCESS_LOG n/a Set the access_log value. Set to off to switch off logging.
USE_SSL false Enables ssl use if set to "true"
DOMAIN n/a Set domain value for ssl certificate

Examples

docker run \
  -e ADW_URL="http://digital-workspace:8091" \
  -e REPO_URL="http://alfresco:8092" \
  -e SHARE_URL="http://share:8093" \
  -e CONTROL_CENTER_URL="http://control-center:8094" \
  -e SYNCSERVICE_URL="http://sync-service:9090" \
  -e ACCESS_LOG="off" \
  -e USE_SSL="true" \
  -e DOMAIN="domain.com" \ # when USE_SSL="true"
  -v ssl/:/etc/nginx/ssl/ \ # when USE_SSL="true"
  --rm -p 443:443/tcp \ # when USE_SSL="true" | default 8080:8080
  alfresco/alfresco-acs-nginx:3.2.0

Using with docker-compose:

digital-workspace:
    image: quay.io/alfresco/alfresco-digital-workspace:1.0.0

digital-workspace-ingress:
    image: alfresco/alfresco-acs-nginx:3.4.0
    depends_on:
        - alfresco
        - digital-workspace
    ports:
        - 443:443 # when USE_SSL="true"
#        - 8080:8080 #default
    links:
        - digital-workspace
        - alfresco
        - share
    volumes:
       - ${PWD}/ssl/:/etc/nginx/ssl/ # when USE_SSL="true"
    environment:
        USE_SSL: "true"
        DOMAIN: "domain.com" # when USE_SSL="true"
    #     ADW_URL: "http://digital-workspace"
    #     REPO_URL: "http://alfresco:8080"
    #     SHARE_URL: "http://share:8080"
    #     SYNCSERVICE_URL: "http://sync-service:9090"

Using with docker-compose Community deployment:

content-app:
    image: quay.io/alfresco/alfresco-content-app:2.10.0
    mem_limit: 128m
    environment:
      APP_BASE_SHARE_URL: "http://localhost:8080/content-app/#/preview/s"

proxy:
    image: alfresco/alfresco-acs-nginx:3.4.0
    mem_limit: 128m
    environment:
        DISABLE_PROMETHEUS: "true"
        DISABLE_SYNCSERVICE: "true"
        DISABLE_ADW: "true"
        DISABLE_CONTROL_CENTER: "true"
        ENABLE_CONTENT_APP: "true"
        USE_SSL: "true" #
        DOMAIN: "domain.com" # when USE_SSL="true"
    depends_on:
        - alfresco
        - content-app
    ports:
        - 443:443 # when USE_SSL="true"
#        - 8080:8080 # default
    links:
        - alfresco
        - share
        - content-app
    volumes:
       - ${PWD}/ssl/:/etc/nginx/ssl/ # when USE_SSL="true"

Continuous Integration

Travis build

acs-ingress's People

Contributors

aborroy avatar ancutam avatar anechifor avatar constantinpopa10 avatar equinoxblack avatar gionn avatar killerboot avatar lsuciu avatar montgolfiere avatar mstrankowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acs-ingress's Issues

Is the naming intentional?

The image is currently called alfresco/acs-community-ngnix specifically ngnix instead of nginx.

The project headline in the readme mentions nginx, so does the image name have a typo, or is it intentional?

USE_SSL enabled, but not able to login to the share page

i have downloaded docker-compose.yml for alfresco 7.0.0
and changed nginx as below in the .yml file. (generated self signed cert and gave the path below)
proxy:
image: alfresco/alfresco-acs-nginx:3.2.0
mem_limit: 128m
environment:
DISABLE_PROMETHEUS: "true"
DISABLE_SYNCSERVICE: "true"
DISABLE_ADW: "true"
USE_SSL: "true"
DOMAIN: "10.188.104.245" # when USE_SSL="true"
depends_on:
- alfresco
ports:
- 443:443
links:
- alfresco
- share
volumes:
- /mypath/ssl:/etc/nginx/ssl/ # when USE_SSL="true"

when i started alfresco using docker-compose up, im not able to login to the share page. getting below error.
ERROR [alfresco.web.site] [http-nio-8080-exec-1] javax.servlet.ServletException: Possible CSRF attack noted when asserting referer header 'https://10.188.104.245/share/page/'. Request: POST /share/page/dologin, FAILED TEST: Assert referer POST /share/page/dologin :: referer: 'https://10.188.104.245/share/page/' vs server & context: http://10.188.104.245:443/ (string) or (regexp)
please help.
already tried below:

  1. disable csrf in alfresco-gobal.properties: csrf.filter.enabled=false
  2. disable in share-config-custom.xml:
    t3. ried to clear cache
    but nothing worked

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.