Skip to content

Change the name of the Content-App to be added in External NGINX #221

@marcokonsultex

Description

@marcokonsultex

Hello.

I used the alfresco-docker-installer template to install Alfresco on a VM in Oracle Cloud under http protocol and port 8080.

We also installed an NGINX on the same server to route all calls and convert them to HTTPS with our own certificate. However, I can't route the content-app because when I add the location in NGINX and inform that the call is "/", it redirects to the Share url.

How can I add a friendly name "workspace" in docker-compose and in alfresco's nginx.conf so that I can successfully add the content-app location in the external NGINX?

This is part of docker-compose.yml that configure o content-app
content-app:
restart: always
image: alfresco/alfresco-content-app:${ACA_TAG}
mem_limit: 256m
environment:
APP_BASE_SHARE_URL: "http://${SERVER_NAME}:8080/#/preview/s"
depends_on:
alfresco:
condition: service_healthy

This is part of my .conf in Nginx:
location /content-app {
proxy_pass http://localhost:8080/#/preview/s;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_buffering off;
client_max_body_size 0;
}

Regards

Marco Gianini

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions