Skip to content
Snippets Groups Projects
Commit 391f0dff authored by jurgenhaas's avatar jurgenhaas
Browse files

docker/l3d#133 Add support for unlighthouse

parent 4b52224a
No related branches found
Tags v1.1.1
1 merge request!78Merging develop into main
Pipeline #1006728 passed
...@@ -203,6 +203,7 @@ class Handler extends BaseHandler { ...@@ -203,6 +203,7 @@ class Handler extends BaseHandler {
], ],
'unlighthouse' => [ 'unlighthouse' => [
'enable' => $this->env->receiveGlobal('UNLIGHTHOUSE', 'Unlighthouse', '0'), 'enable' => $this->env->receiveGlobal('UNLIGHTHOUSE', 'Unlighthouse', '0'),
'urlprefix' => '',
], ],
]; ];
} }
......
...@@ -589,7 +589,7 @@ services: ...@@ -589,7 +589,7 @@ services:
traefik.enable: 'true' traefik.enable: 'true'
traefik.docker.network: traefik-public traefik.docker.network: traefik-public
traefik.http.services.{{ projectname }}_unlighthouse.loadbalancer.server.port: 5678 traefik.http.services.{{ projectname }}_unlighthouse.loadbalancer.server.port: 5678
traefik.http.routers.unlighthouse-{{ projectname }}.rule: Host(`{{ projectdomain }}`) traefik.http.routers.unlighthouse-{{ projectname }}.rule: Host(`unlighthouse-{{ projectdomain }}`)
{% if drupal.live|default(0) or traefik.usessl %} {% if drupal.live|default(0) or traefik.usessl %}
traefik.http.routers.unlighthouse-{{ projectname }}.tls: 'true' traefik.http.routers.unlighthouse-{{ projectname }}.tls: 'true'
traefik.http.routers.unlighthouse-{{ projectname }}.tls.certresolver: lakedrops traefik.http.routers.unlighthouse-{{ projectname }}.tls.certresolver: lakedrops
......
export default {
puppeteerOptions: {
args: ["--no-sandbox"],
},
server: {
open: false,
},
site: "{{ projectprotocol }}://{{ projectdomain }}",
serverUrl: "{{ projectprotocol }}:/unlighthouse-{{ projectdomain }}/",
clientUrl: "{{ projectprotocol }}://unlighthouse-{{ projectdomain }}/",
apiUrl: "{{ projectprotocol }}://unlighthouse-{{ projectdomain }}/api",
websocketUrl: "{{ socketprotocol }}://unlighthouse-{{ projectdomain }}/api/ws",
}
export default {
puppeteerOptions: {
args: ["--no-sandbox"],
},
server: {
open: false,
},
site: "{{ projectprotocol }}://{{ projectdomain }}{{ unlighthouse.urlprefix|default('') }}",
{% if basicauth.enable %}
auth: {
username: "{{ basicauth.user }}",
password: "{{ basicauth.pass }}",
},
{% endif %}
serverUrl: "{{ projectprotocol }}://unlighthouse-{{ projectdomain }}/",
clientUrl: "{{ projectprotocol }}://unlighthouse-{{ projectdomain }}/",
apiUrl: "{{ projectprotocol }}://unlighthouse-{{ projectdomain }}/api",
websocketUrl: "{{ socketprotocol }}://unlighthouse-{{ projectdomain }}/api/ws",
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment