# Bug with "Copy to Clipboard"

**URL:** <https://forum.manager.io/t/bug-with-copy-to-clipboard/31139>\
**Category:** Uncategorized\
**Created:** [October 15, 2020, 12:24pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139 "2020-10-15T12:24:17Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [January 19, 2021, 9:05pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/62 "2021-01-19T21:05:03Z")

</div>

It depends so much on what server you are using. I’m not a Linux guru but I can try…

---

<div class="post-metadata">

**Author:** ![pandhm](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pandhm](https://forum.manager.io/u/pandhm)\
**Post date:** [January 19, 2021, 10:14pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/63 "2021-01-19T22:14:10Z")

</div>

Windows 7

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [January 20, 2021, 6:27am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/64 "2021-01-20T06:27:07Z")

</div>

Are you running server edition on Windows 7? Changes need to be fine on server side…

---

<div class="post-metadata">

**Author:** ![pandhm](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pandhm](https://forum.manager.io/u/pandhm)\
**Post date:** [January 20, 2021, 7:40am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/65 "2021-01-20T07:40:49Z")

</div>

Windows 7

---

<div class="post-metadata">

**Author:** ![pandhm](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pandhm](https://forum.manager.io/u/pandhm)\
**Post date:** [January 20, 2021, 7:45am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/66 "2021-01-20T07:45:59Z")

</div>

Yew, you are right, Server edition, on windows 7.

Do you know these changes?

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [January 20, 2021, 7:54am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/67 "2021-01-20T07:54:52Z")

</div>

@pandhm if your server edition is accessible from the Internet on a domain name, you can install Caddy as per our guide: [Windows | Manager](https://www.manager.io/server/installation/windows/)

---

<div class="post-metadata">

**Author:** ![pandhm](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pandhm](https://forum.manager.io/u/pandhm)\
**Post date:** [January 20, 2021, 11:07am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/68 "2021-01-20T11:07:35Z")

</div>

It is not, it’s only accessible from LAN

---

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [January 29, 2021, 7:44am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/69 "2021-01-29T07:44:50Z")

</div>

> [@lubos](#):
>
> Clipboard API which Manager is using works in modern web-browsers only when page is served through https protocol. The only exception is when running server edition locally and accessing Manager through localhost.

> [@lubos](#):
>
> This is out of my hands.

I think it would be a good idea to at least update the installation guide, or better yet include Caddy and a basic caddyfile in the distribution

For an

- intranet Manager Server at say IP 192.168.1.10
- the default Manager local server installation on port 8080
- Caddy in an accessible directory, for example the same as ManagerServer

Create a file named “caddyfile” (with no extension) in a text editor with the contents

```auto
192.168.1.10, localhost, 127.0.0.1
reverse_proxy 127.0.0.1:8080

```

Copy the above Caddyfile and caddyfile.exe into the same directory as ManagerServer

To manually run the Manager server

- Start Manager server as per the guide
- Start Caddy by opening a command prompt, cd to the directory caddy is in if required, then type the command

```auto
caddy run

```

or

```auto
caddy start

```

The latter runs it in background, requires a `Caddy stop` to stop it or `Caddy reload` to update the configuration

If your self hosted Manager server is to be accessible form the internet / replace the first line in the caddyfile with your domain name.

Manager server can then be accessed over your local intranet from a web browsers. In the above example  
`http://192.168.1.10:80`  
will redirect to  
`https://192.168.1.10:443`

When you first browse to that location, your browser will give an error indicating the authenticity could not be verified, consistent with caddy generating a self signed certificate.

Either accept the exception or manually instal the certificate onto the computer/browser you are using to access Manager. The certificate is located on the computer caddy is running on in the directory C:\Users\<Your Name\>\AppData\Roaming\caddy\

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [January 29, 2021, 8:00am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/70 "2021-01-29T08:00:24Z")

</div>

I’m planning to add HTTPS support directly to Manager Server so Caddy won’t be required. Possibly with ability to generate self-signed certificate on demand if none provided.

---

<div class="post-metadata">

**Author:** ![dalacor](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalacor](https://forum.manager.io/u/dalacor)\
**Post date:** [January 29, 2021, 8:38am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/71 "2021-01-29T08:38:57Z")

</div>

Two things.

I use IIS for Manager. Caddy couldn’t work for me - I think because I was running other services on that server. So whatever changes you need to make, please make sure it works with IIS. It will mean that I can get rid of the reverse proxy thing that I setup to redirect to port 80 http.

I would recommend that Manager requires a proper signed certificate, not a self signed one. Certificates are not that expensive and it eliminates the need to add coding to generate a self signed certificate. I bought a certificate and have had no issues installing it in IIS.

---

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [January 29, 2021, 9:02am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/72 "2021-01-29T09:02:33Z")

</div>

> [@dalacor](#):
>
> I would recommend that Manager requires a proper signed certificate

A domain name and a certificate signed by a public authority makes perfect sense for a Manager server with internet / public access.

However for users who have a self hosted Manager server because they do NOT want their accounting sever to have public access, then a domain name and an external certificate authority decreases not increased local server security.

So I want exactly the opposite. If Manager has https support internally please ensure the self hosted server can readily be used on a local only network and does not rely on any external internet access. Please continue to allow simple use of self signed / local only certificates.

---

<div class="post-metadata">

**Author:** ![dalacor](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dalacor](https://forum.manager.io/u/dalacor)\
**Post date:** [January 29, 2021, 11:10am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/73 "2021-01-29T11:10:16Z")

</div>

Yes I agree with you. My point of view is I don’t like the trend of websites to use these free self certificate services. I would rather the websites used a known and trusted certificate.

However, this would not apply in your situation. I was referring to public facing Manager installations.

---

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [January 29, 2021, 12:26pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/74 "2021-01-29T12:26:15Z")

</div>

> [@Patch](#):
>
> Create a file named “caddyfile” (with no extension) in a text editor with the contents
> 
> ```auto
> 192.168.1.10, localhost, 127.0.0.1
> reverse_proxy 127.0.0.1:8080
> 
> ```

For those who do not want to bind Manager to port 80 and 443 (useful if your server has other things on those ports), this caddyfile will put a https version ManagerServer on port 8081 so Copy to Clipboard works

```auto
https://192.168.1.21:8081, https://localhost:8081, https://127.0.0.1:8081
reverse_proxy localhost:8080

```

---

<div class="post-metadata">

**Author:** ![pandhm](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pandhm](https://forum.manager.io/u/pandhm)\
**Post date:** [January 29, 2021, 2:16pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/75 "2021-01-29T14:16:34Z")

</div>

> [@Patch](#):
>
> ```auto
> 192.168.1.10, localhost, 127.0.0.1
> reverse_proxy 127.0.0.1:8080
> 
> ```

I did what you suggest but its not working. The only difference is that my manager server runs on port 80.  
Here is my Caddyfile:

192.168.1.10, localhost, 127.0.0.1  
reverse\_proxy 127.0.0.1:80

and here the result from command

caddy run:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/c/5/c581f894cd35f6dc14396b58c28cdf2be0625cdc.png)

---

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [January 29, 2021, 2:26pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/76 "2021-01-29T14:26:36Z")

</div>

Caddy by defaults sets up port 80 to redirect the users web browser to https on port 443 where ongoing reverse poxy occurs.

With your invocation Caddy is giving an error that there is already another service on port 80 (ie your Manager server).

Your choices are:

- move ManagerSever to another port (such as the default 8080)

- Use something similar to the second caddy file I provided above, which instructs Caddy to just set up https reverse proxy ( which could be on port 443).

---

<div class="post-metadata">

**Author:** ![pandhm](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@pandhm](https://forum.manager.io/u/pandhm)\
**Post date:** [January 29, 2021, 2:36pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/77 "2021-01-29T14:36:24Z")

</div>

Perfect.  
Everything worked fine when I change the manager port to 8080.  
Thank you

---

<div class="post-metadata">

**Author:** ![acecombat2](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/acecombat2/32/6638_2.png) [@acecombat2](https://forum.manager.io/u/acecombat2)\
**Post date:** [February 3, 2021, 11:29am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/78 "2021-02-03T11:29:50Z")

</div>

basically web browser with https or caddyserver makes the managerserver unable to buffer literally a lot of function.

> [@Backup not working for server edition](https://forum.manager.io/t/backup-not-working-for-server-edition/32951):
>
> @lubos can you try with firefox browser whether the backup button even work? after I updated the said version via docker which I realized you’ve changed the docker script and even the directory for the files changed. smiley

---

<div class="post-metadata">

**Author:** ![Stewart](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Stewart](https://forum.manager.io/u/Stewart)\
**Post date:** [February 24, 2021, 6:46am UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/79 "2021-02-24T06:46:41Z")

</div>

If it is of any use: select data you want to copy in Manager, other mouse button copy and in excel paste special, then text and all is as before. A bit of a hassle, but it works

---

<div class="post-metadata">

**Author:** ![mroon](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mroon](https://forum.manager.io/u/mroon)\
**Post date:** [April 28, 2021, 9:09pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/80 "2021-04-28T21:09:18Z")

</div>

Any update on this, still not working

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [April 28, 2021, 9:23pm UTC](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139/81 "2021-04-28T21:23:29Z")

</div>

@mroon, you need to be more specific. You have not been part of this lengthy and wandering topic, yet suddenly you ask if there is any update. Update on what? And what is “still not working?”

Please be succinct. I am about to close this topic because it has strayed so far from the original bug report, and the developer believes that bug was fixed.

[Previous page](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139.md?page=3)

[Next page](https://forum.manager.io/t/bug-with-copy-to-clipboard/31139.md?page=5)
