Self-hosted app·Social networks and the fediverse
Self-hosting otwarchive, the software behind AO3, in the Swiss Alps.
otwarchive self host guide for ALP1: Docker on a 6 vCPU / 8 GB Swiss VPS at $22.99/mo, real sizing, mail, moderation and what Swiss law forbids.
- Archive of Our Own
- MariaDB
- Elasticsearch
- Redis
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port20 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $206.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 6 vCPU, 8 GB RAM
- 320 GB NVMe local storage
- 20 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. otwarchive runs on our Cloud VPS Pro, with 6 vCPU, 8 GB of RAM, 320 GB of local NVMe and 20 TB of monthly transfer for $22.99 a month, installed with Debian 13 in ALP1, our site in the Swiss Alps. Eight gigabytes carries an invitation-only community archive if Elasticsearch keeps the 1.5 GB heap the project itself configures and you trim the ebook formats; a large public archive belongs on the 16 GB Power plan. Deploy VPS Pro with Debian 13.
The point that decides most archives is legal. AO3's rules allow fiction depicting sex involving minors as long as it carries the matching archive warning, or the creator chose not to warn. Swiss criminal law does not: art. 197 al. 4 CP punishes storing or making accessible pornographic writing about sexual acts with minors, whether the acts are real or fictional, and an archive on our servers cannot hold it.
02/06
What otwarchive is and who runs it.
otwarchive is the Ruby on Rails application that the Organization for Transformative Works, a nonprofit run by fans, develops for its own Archive of Our Own. The code is public on GitHub under GPL-2.0-or-later. At the commit we read on 6 November 2026 it targets Rails 8.1 and Ruby 3.4.12, keeps its data in MariaDB, searches through Elasticsearch, and depends on Redis, memcached, Resque background workers and Calibre, which produces the EPUB, MOBI, AZW3 and PDF downloads.
The software serves AO3 first, and self-hosters feel it. There is no API. The abuse and support forms open tickets in Zoho Desk, the tracker the OTW uses, and config.yml ships AO3's domains, short name and logo as defaults. The README sends would-be operators to setup notes written by SquidgeWorld, an independent archive that runs the code, and the project's macOS guide says plainly that the team cannot support local installs. Operator knowledge therefore lives in the GitHub wiki, the Jira tracker and those notes. r/AO3 tells you what readers and writers will expect from an archive; it will not help you debug a stuck Resque queue. Fandoms in French-speaking Switzerland looking to host a fanfiction archive end up with the same codebase and the same trade-offs.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
Memory decides the plan. Six vCPU are more than a text archive needs outside a full reindex or an ebook conversion, the transfer allowance is far away, and disk fills slowly. RAM is shared between a JVM, a database buffer pool and several Ruby processes, and whichever loses that contest is the one your readers notice. The table sets what the upstream Docker setup runs against the budget we would start with on VPS Pro.
| Component | Upstream Docker setup | Our starting budget on VPS Pro (8 GB) |
|---|---|---|
| Elasticsearch | 9.3.0, heap fixed at 1.5 GB, security off | keep the 1.5 GB heap; 1 shard per index instead of 5 |
| MariaDB | mariadb:10.5.4 image | a supported LTS, buffer pool 1.5 GB |
| Rails app | rails s in development mode | production mode, 2–3 app-server workers |
| Resque | one container for worker and scheduler | unchanged |
| Redis 7, memcached 1.5 | defaults | memcached capped at 256 MB |
Calibre ebook-convert | installed in the image | runs per download; PDF is the expensive one |
Take out the fixed allocations and about 3.5 GB remains for the Ruby workers, Resque, Calibre and the page cache (theoretical: 8 GB minus the 1.5 GB heap, the 1.5 GB buffer pool, and 1.5 GB set aside for Elasticsearch's off-heap memory, Redis, memcached and the kernel). Calibre is the spike to plan around, because its PDF path renders through QtWebEngine, a Chromium engine. On 8 GB we would offer EPUB and HTML and add the other formats once you have watched memory through a busy evening. Do not keep the 10.5 database image either: that series reached end of life on 24 June 2025, while 10.11 is supported until February 2028.
Disk and transfer will not be where you run out. Twenty thousand works averaging 40 KB of stored HTML make 0.8 GB of chapter text (theoretical); database indexes, the search index and the change history the app keeps through the audited gem multiply that several times and still leave most of the 320 GB untouched. At 100 KB per page view, 20 TB a month covers 200 million page views (theoretical). VPS transfer is an allowance included in the plan rather than unmetered traffic, but text does not come close to it.
Move to Cloud VPS Power, with 12 vCPU, 16 GB, 640 GB NVMe and 40 TB for $42.99, when the server starts to swap, when Elasticsearch logs long garbage-collection pauses, or before you open sign-ups to a multi-fandom audience; 16 GB lets you double both the heap and the buffer pool. Only SSH, 80 and 443 should be reachable from outside. Outbound port 25 is open on every VPS, which this application needs, since it sends invitations, subscription notices and comment notifications by email.
04/06
How to deploy it with us.
The repository's docker-compose.yml is a development environment. Starting from it and hardening it is quicker than rebuilding the Capistrano deployment AO3 uses, provided you treat every step below as mandatory.
- 01Order VPS Pro with Debian 13. Install Docker Engine with the compose plugin (2.24 or later, for the override tags below) and set
vm.max_map_count=262144in/etc/sysctl.d/, which Elastic requires for production use of its image. - 02Clone
otwcode/otwarchive, or your fork, and pin a commit you have tested. Replace the default database passwordchange_meinconfig/docker/database.ymland in the compose file, as the wiki asks. - 03Take the internal services off the public interface before the first start. The upstream file publishes MariaDB, Redis, Elasticsearch and memcached on every address, and Docker's own documentation says published ports bypass ufw, so a host firewall will not save you. Compose merges an override file automatically:
# docker-compose.override.yml
services:
db:
image: mariadb:10.11 # supported LTS; run the test suite against it first
ports: !reset []
redis:
ports: !reset []
es:
ports: !reset []
mc:
ports: !reset []
web:
ports: !override
- "127.0.0.1:3000:3000"- 04Run
./script/docker/init.shonce. It builds the images, creates and migrates the databases, builds the search indexes and seeds a development archive with the demo accountstestuserandadmin-testadmin. Use that archive to learn the admin side; the wiki itself warns against letting the development database anywhere near production. - 05Add your own settings to
config/local.yml, which overridesconfig.yml. The latter tells you not to edit it, and its session secret and encryption keys are public placeholders.
APP_URL: 'https://archive.example.org'
APP_HOST: 'archive.example.org'
APP_NAME: 'Example Fandom Archive'
APP_SHORT_NAME: 'EFA'
PERMITTED_HOSTS: ['archive.example.org']
SESSION_SECRET: 'output of: openssl rand -hex 64'
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY: 'random, at least 32 characters'
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY: 'random, at least 32 characters'
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT: 'random, at least 32 characters'
RETURN_ADDRESS: 'do-not-reply@archive.example.org'
ADMIN_ADDRESS: 'admins@archive.example.org'
PERFORM_DELIVERIES: true
SMTP_SERVER: 'smtp.archive.example.org' # your relay
ACCOUNT_CREATION_ENABLED: false # the default: sign-up by invitation
DOWNLOAD_FORMATS: ['epub', 'html']
WORKS_SHARDS: 1
BOOKMARKABLE_SHARDS: 1
COLLECTION_SHARDS: 1
PSEUD_SHARDS: 1
TAG_SHARDS: 1
USER_SHARDS: 1- 06Switch the live archive to production:
RAILS_ENV: productionforwebandresque, a fresh production database, precompiled assets, and unicorn, which the Gemfile still names as the web server (puma is installed for a planned move), behind Caddy or nginx for TLS. The proxy must passX-Forwarded-For, because rack-attack limits each client address to 300 requests per 300 seconds by default and needs the real one. SquidgeWorld currently puts an Anubis proof-of-work check in front of its archive; writers do notice when scrapers harvest their work, so decide early whether you want the same. The SquidgeWorld notes are the closest thing to a production runbook, and the wiki's Development Data page shows how admin accounts are created. - 07Rewire the abuse and support forms. They post to Zoho Desk, and the comment in
config.ymlwarns that you may need to changefeedbacks_controller.rbandabuse_reports_controller.rbto reach your own tracker. A report button that goes nowhere means an archive you cannot moderate. - 08Set PTR, SPF, DKIM and DMARC before the first invitation goes out; our self-hosted SMTP relay guide covers Postfix on Debian 13. Then back up what cannot be rebuilt: a nightly
mysqldump --single-transactionplus Redis's dump file, which holds hit counts until the workers write them out, pushed with restic to an object storage bucket over its S3 API. Elasticsearch needs no backup, since the workers rebuild it from the database.
05/06
Cost.
| Item | Per month | Included |
|---|---|---|
| Cloud VPS Pro | $22.99 | 6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB transfer, 1 Gbps, DDoS protection, 1 IPv4, full root, VNC console |
| Daily backups (+20 %) | $4.60 | one automatic backup a day, seven kept (20 % of $22.99) |
| Object storage, 250 GB | $1.99 | restic target for dumps; S3-compatible, unlimited traffic, no request fees |
| Total | $29.58 | theoretical sum of the three lines |
Yearly billing takes about 25 % off and brings VPS Pro to $206.99 a year. Payment is in cryptocurrency only (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins) against a balance kept in US dollars. A $250 top-up earns a 15 % bonus and becomes $287.50, enough for twelve months of VPS Pro at $275.88 with $11.62 left over (theoretical). Bonus credit pays for servers like paid credit but is not refunded, while the unused paid part of a top-up can be refunded within 14 days. Every plan and option is on the pricing page.
06/06
Limits and acceptable use.
Our rule is short: no sexual content involving minors on our servers, written, drawn or generated, whatever rating or warning it carries. The law behind it is art. 197 CP. Al. 1 lists writings among pornographic objects, and al. 4 punishes anyone who stores, makes accessible or distributes such objects depicting sexual acts with minors that are not real with up to three years; real acts carry five. That wording has covered "non-real" material since 2014, and in a ruling reported in December 2025 the Federal Supreme Court read it broadly enough to include adult performers digitally made to look like children, citing the legislator's intent to cover purely virtual material such as comics. Al. 9 excludes works of protectable cultural or scientific value, but a court applies that after the fact; neither you nor we can apply it from a moderation queue.
For an otwarchive install the consequence is concrete. The code ships AO3's "Underage Sex" archive warning (WARNING_CHAN_TAG_NAME), and AO3 permits those works, so a bulk import from AO3 brings them along. Filter on the warning before importing and treat a new work carrying it as a removal, not a discussion. The warning only catches honest creators: "Creator Chose Not To Use Archive Warnings" can cover the same content, so the filter is a first pass and your moderators are the actual policy.
Explicit fiction between adult characters is lawful here, with one constraint: al. 1 makes it an offence to make pornographic writing accessible to anyone under 16. otwarchive's adult-content notice is a click-through, not age verification. Whether it suffices for your archive is a question for Swiss counsel; the cautious setup is invitation-only sign-up with an age declaration, and asking creators to restrict Mature and Explicit works to registered users, which is a per-work setting.
Copyright works differently from the US. Swiss law has no fair-use clause: authors decide whether their work may be used to create a derivative work (art. 11 al. 1 let. b LDA), and the stated exception covers parodies and similar imitations (al. 3). Most fan fiction sits in a grey zone that rights holders rarely test; reposted chapters of a published novel are plain infringement. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer (who must remove the content or justify it) and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025); the answer on DMCA notices has the detail. The stay-down duty of art. 39d CopA applies only when a work was already made available unlawfully through the same service, the provider was notified, and the service creates a particular risk of infringement. Our acceptable use policy applies on top of all this.
As operator you also answer for your members' data. Under the revised Federal Act on Data Protection, in force since 1 September 2023, you are the controller for their email addresses, IP addresses, bookmarks and reading history. Data on the intimate sphere is sensitive under art. 5 let. c ch. 2, and a member's reading history on a fan archive can come close to it. Akismet, which the code can call to check comments for spam, and Zoho both receive text and IP addresses from your site: switch them off, or check that the provider is certified under the Swiss-U.S. Data Privacy Framework, which Switzerland has recognised since 15 September 2024. Members in the EU are covered by the adequacy decision the European Commission reconfirmed on 15 January 2024. Moderation is a job of its own; the default config accepts at most five abuse reports per work every 31 days, which a determined harasser can use up, and our Lemmy instance guide describes what running a community server asks of its admins.
Two limits are ours. Everything runs in one facility, ALP1, so geographic failover means a second provider. And this is an unmanaged VPS: the OTW keeps moving the code to new Rails, Ruby and Elasticsearch versions, and merging those changes into your fork is your work.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProRecommendedProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Does the OTW support self-hosted otwarchive installations?
No. The software is developed for AO3. The README directs anyone who wants to use it to SquidgeWorld's setup notes, and the project's setup guide states that the team cannot support local installs. Be comfortable reading Rails code and the issue tracker before you announce an archive.
Can I move works from AO3 to my archive?
There is no API to export through. otwarchive has an importer that fetches works from URLs, 25 per batch for ordinary users and 200 for accounts with the archivist role in the default config. It refuses URLs from the hosts in PERMITTED_HOSTS, which by default are AO3's own domains; once you replace that list with yours, test whether AO3 pages import cleanly. Import only with the creators' agreement, since fan authors hold copyright in what they wrote, and run the underage-content filter on every batch.
Can I keep the AO3 name and look?
Change APP_NAME, APP_SHORT_NAME, LOGO and the OTW logo settings in local.yml before launch. The defaults identify the OTW's own archive, and nobody should mistake yours for it or assume the OTW runs it. The site skins are part of the GPL-licensed code, and restyling them is the quickest way to make the difference visible.
Will a DMCA notice take my archive offline?
Not by itself. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to you, you remove the content or justify it, and we act on a decision of a competent Swiss authority or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025).
Who can obtain my members' data from a server in ALP1?
A competent Swiss authority with a valid decision can, and we follow such decisions. A foreign authority normally has to go through Swiss mutual legal assistance, and as of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. That narrows who can ask without making the data unreachable; the Swiss jurisdiction page sets out where the protection ends.
Can a fan collective without a company order a server?
Yes. Ordering is no-KYC: an email address is enough to open an account, top up in crypto and deploy. An association gets the same invoices as any customer: number, date, period, lines and total in USD, addressed to the account's email, with no field for an organisation's name or VAT number. Switzerland Hosting is operated by Hosta AG, société anonyme suisse, IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen, Switzerland. To ask anything before ordering, open a support ticket from the client panel.
Sources
Every fact on this page, with its source
Checked 6 Nov 2026 unless noted.
Swiss law and authorities
- Art. 197 CP, al. 1, 4, 5 and 9, version in force on 1 Nov 2026Fedlex, RS 311.0
- Art. 11 LDA, derivative works and parody exceptionFedlex, RS 231.1
- Stay-down duty, CopA art. 39d, in force since 1 April 2020 (RO 2020 1003)Fedlex, Copyright Act · checked 31 Oct 2026
- Revised FADP in force since 1 September 2023; sensitive data, art. 5 let. cFedlex, RS 235.1
- Swiss recognition of the Swiss-U.S. Data Privacy Framework since 15 September 2024Federal Office of Justice · checked 31 Oct 2026
EU and other countries
- EU adequacy for Switzerland reconfirmed on 15 January 2024, decision 2000/518/EC in forceEuropean Commission · checked 31 Oct 2026
- CLOUD Act executive agreements limited to the United Kingdom and AustraliaUS Department of Justice · checked 31 Oct 2026
Industry, providers and software
- otwarchive README: GPL-2.0-or-later, no API, SquidgeWorld setup notesgithub.com/otwcode/otwarchive
- Upstream services, image versions (MariaDB 10.5.4, Redis 7, Elasticsearch 9.3.0, memcached 1.5), 1.5 GB heap, published ports, Elasticsearch security disabled, QtWebEngine flag for ebook-convertdocker-compose.yml
- Init script, demo accounts, password change, warning about the development databaseotwarchive wiki: Docker
- Rails 8.1, Ruby 3.4.12, unicorn as web server, puma, rack-attack, auditedGemfile
- Ruby 3.4.12 base image, Calibre installedconfig/docker/Dockerfile
- local.yml rule, placeholder secrets and keys, Zoho Desk integration, account creation and invitations, download formats, shard counts, rate limits, abuse-report limits, import limits, PERMITTED_HOSTS, WARNING_CHAN_TAG_NAME, Akismetconfig/config.yml
- Abuse reports sent to Zoho Deskabuse_reporter.rb
- The team cannot support local installsotwarchive wiki: OS X Setup
- DMCA handling and the Swico Code of Conduct Hosting 2025Our answer on DMCA notices
- Plans, options, yearly price, top-up bonus and refund ruleOur pricing page
Other references
- SquidgeWorld fronted by an Anubis proof-of-work checksquidgeworld.org
- Federal Supreme Court on digitally de-aged performers and non-real child pornography since 2014SRF, 29 Dec 2025
- Published container ports bypass ufwdocs.docker.com
- vm.max_map_count of at least 262144 for productionelastic.co
- MariaDB 10.5 and older past end of lifeMariaDB release notes
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
