Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit c31ed396 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Allow local access to /e/OS

parent e95a92ff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,3 +26,4 @@ NEXTCLOUD_DOCKERFILE=slim.Dockerfile
NEXTCLOUD_DOCKER_IMG=registry.gitlab.e.foundation/e/infra/ecloud/nextcloud/slim
NEXTCLOUD_ADMIN_USER=admin
NEXTCLOUD_ADMIN_PASSWORD=@dm1n
NEXTCLOUD_TRUSTED_DOMAINS=localhost 192.168.0.1
+4 −4
Original line number Diff line number Diff line
@@ -103,15 +103,15 @@ server {
        # The rules in this block are an adaptation of the rules
        # in `.htaccess` that concern `/.well-known`.

        location = /.well-known/carddav { return 301 /remote.php/dav/; }
        location = /.well-known/caldav  { return 301 /remote.php/dav/; }
        location = /.well-known/carddav { return 301 $scheme://$http_host/remote.php/dav/; }
        location = /.well-known/caldav  { return 301 $scheme://$http_host/remote.php/dav/; }

        location /.well-known/acme-challenge    { try_files $uri $uri/ =404; }
        location /.well-known/pki-validation    { try_files $uri $uri/ =404; }

        # Let Nextcloud's API for `/.well-known` URIs handle all other
        # requests by passing them to the front-end controller.
        return 301 /index.php$request_uri;
        return 301 $scheme://$http_host/index.php$request_uri;
    }

    # Rules borrowed from `.htaccess` to hide certain paths from clients
@@ -168,7 +168,7 @@ server {

    # Rule borrowed from `.htaccess`
    location /remote {
        return 301 /remote.php$request_uri;
        return 301 $scheme://$http_host/remote.php$request_uri;
    }

    location / {
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ services:
      - REDIS_HOST=${REDIS_HOST}
      - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
      - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
      - NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN}
      - NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
      - SMTP_SECURE=tls
      - SMTP_PORT=587
      - SMTP_NAME=${SMTP_NAME}
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ sed -e "s|\${NEXTCLOUD_LOGFILE}|${NEXTCLOUD_LOGFILE:-/var/www/html/data/nextclou
occ maintenance:theme:update

echo "Enabling nextcloud apps"
occ app:enable notes
occ app:enable contacts
occ app:enable calendar
occ app:enable ecloud-theme-helper
@@ -22,6 +21,7 @@ occ app:enable snappymail
occ app:enable suspicious_login
occ app:enable bruteforcesettings
occ app:enable twofactor_totp
occ app:enable notes
occ app:enable tasks
occ app:enable sentry