You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my local script to automatically setup OC for Phoenix development:
#!/bin/bash
OCDIR="/srv/www/htdocs/owncloud"
DATADIR="$OCDIR/data"
OCC="sudo -uwwwrun ./occ"
HOSTNAME=phoenixhost.local
PHOENIX_HOSTNAME=$HOSTNAME:8300
PHOENIX_CLIENTID=***REMOVED***
PHOENIX_CLIENTSECRET=***REMOVED***
cd "$OCDIR"
echo Setting up ownCloud for host name "$HOSTNAME" to connect with Phoenix on "${PHOENIX_HOSTNAME}"
$OCC config:system:set overwrite.cli.url --value="['http://$HOSTNAME/owncloud']"
$OCC config:system:set trusted_domains --type=json --value="[\"${HOSTNAME}\"]"
$OCC config:system:set cors.allowed-domains --type=json --value="[\"http://${PHOENIX_HOSTNAME}\", \"http://localhost:9876\"]"
$OCC config:system:set dav.enable.tech_preview --type=boolean --value=true
$OCC config:system:set phoenix.baseUrl --type=string --value="http://${PHOENIX_HOSTNAME}"
$OCC app:enable oauth2
$OCC oauth2:add-client "Phoenix" "${PHOENIX_CLIENTID}" "${PHOENIX_CLIENTSECRET}" "http://${PHOENIX_HOSTNAME}/oidc-callback.html"
echo Please copy the OAuth2 client id into Phoenix\'s config.json: "$PHOENIX_CLIENTID"
To get an oauth2 secret, I had to first do the oauth2 pairing manually, then I looked up the client id and secret in the database to reuse in this script.
We should provide a way to setup the new (Phoenix frontend)[https://github.com/owncloud/phoenix].
The way I see it this should be a different role, as this can also be run on a different machine.
There are at least three ways to deploy Phoenix:
Install as an app
Install on the same host
Install Phoenix on a separate host
Here is my local script to automatically setup OC for Phoenix development:
To get an oauth2 secret, I had to first do the oauth2 pairing manually, then I looked up the client id and secret in the database to reuse in this script.
On the Phoenix side, config.json:
Connecting to OCIS
Other
The text was updated successfully, but these errors were encountered: