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
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,17 @@ Shorten is an add-on app for ownCloud that enables one-click URL shortening. It'
7
7
8
8
## Installation
9
9
10
-
**Step 1: Install the add-on**
10
+
### Step 1: Install the add-on
11
11
12
12
- Place this app in *owncloud/apps/shorten* (Rename the extracted ZIP to "shorten" or you will receive errors)
13
13
- Re-login to owncloud and run the update
14
14
15
-
**Step 2: Setup the shortening server**
15
+
### Step 2: Setup the shortening server
16
+
17
+
#### *Step 2 - Option A: goo.gl*
18
+
To use http://goo.gl, all you need to do is aquire an API key to use in the admin settings. You can aquire a key using these instructions from Google: *https://developers.google.com/url-shortener/v1/getting_started#APIKey*
Next, you must setup your shortening server. This can be the same webserver you are running ownCloud on, or a completely different server to enable a privacy filter for your owncloud installation. For the purpose of this guide, we will assume your setup is:
18
23
- Your owncloud server is at *https://mylongdomain.ext:port/owncloud*
@@ -44,10 +49,12 @@ $enabled = true;
44
49
#$enabled = false;
45
50
```
46
51
47
-
**Step 3: Configure the app**
52
+
### Step 3: Configure the app
48
53
49
-
Lastly, visit the administration page for ownCloud and in the *Shorten* configuration include your shortening server's URL, which is everything before *?SHORTCODE*. In this case:
54
+
Lastly, visit the administration page for ownCloud and in the *Shorten* configuration include your shortening server's URL, which is everything before *?SHORTCODE* if you are using the internal shortener. In this case:
50
55
```
51
56
https://mydomain.ext/s
52
57
```
58
+
If you're using http://goo.gl, you would need to include your API key in the provided settings box.
59
+
53
60
At this point, when you check the box to share a file publically, the app will replace the public share link displayed in the ownCloud web interface.
0 commit comments