> For the complete documentation index, see [llms.txt](https://antsankov.gitbook.io/go-live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://antsankov.gitbook.io/go-live/usecases/file-hosting-server.md).

# File Hosting Server

## Hosting Files

go-live will host any files and subdirectories of the directory it is executed in. This includes any other type of file other than .html files:

```
go-live --dir ~/share-directory
```

\
You can use this on a Rasberry Pi,  Media Device, or Datacenter system to perform very basic file hosting on a local network or via the internet or any device that has the ability to serve on a port.

{% hint style="info" %}
Make sure the port you are hosting on is open if connecting via the Internet. You may need sudo to run on Port 80
{% endhint %}

Users with a headless display can simply wget any files from the route.

Once the files are hosted they are accessible via the browser or via the browser. Use the local address if on the same subnet or remote address if downloading via the internet.

![Access from anywhere on the local network or Internet](/files/-MIGM_l22wFpaSJi9ZH1)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://antsankov.gitbook.io/go-live/usecases/file-hosting-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
