-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dc394f
commit 2ce5479
Showing
7 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Dockerfile | ||
env.list | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM nextcloud:latest | ||
COPY site.conf /etc/apache2/sites-enabled/000-default.conf | ||
RUN a2enmod ssl | ||
RUN mkdir /tls | ||
RUN openssl req -new -x509 -days 365 -nodes \ | ||
-out /tls/server.cert \ | ||
-keyout /tls/server.key \ | ||
-subj "/C=RO/ST=Bucharest/L=Bucharest/O=IT/CN=www.example.ro" | ||
RUN apt-get update && apt-get install -yq \ | ||
git \ | ||
vim | ||
WORKDIR /install | ||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
RUN php composer-setup.php | ||
RUN php -r "unlink('composer-setup.php');" | ||
ADD ./solid /usr/src/nextcloud/apps/solid | ||
# Run composer: | ||
WORKDIR /usr/src/nextcloud/apps/solid | ||
RUN ls | ||
RUN php /install/composer.phar install --no-dev --prefer-dist | ||
WORKDIR /var/www/html | ||
ADD init.sh / | ||
EXPOSE 443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALICE_WEBID=https://server/apps/solid/@alice/turtle#me | ||
COOKIE_TYPE=nextcloud-compatible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
php console.php maintenance:install --admin-user alice --admin-pass alice123 | ||
php console.php status | ||
php console.php app:enable solid | ||
sed -i '61 i\ RewriteRule ^\\.well-known/openid-configuration /apps/solid/openid [R=302,L]' .htaccess | ||
sed -i "25 i\ 1 => 'server'," config/config.php | ||
echo configured |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<VirtualHost *:443> | ||
DocumentRoot /var/www/html | ||
ErrorLog ${APACHE_LOG_DIR}/error.log | ||
CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
|
||
SSLEngine on | ||
SSLCertificateFile "/tls/server.cert" | ||
SSLCertificateKeyFile "/tls/server.key" | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters