Jump to content

Infrastructure: Difference between revisions

From wiki.rayhan.com
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Current Infra ==
== This wiki ==


This wiki is served from a Docker container running Mediawiki, reverse-proxied by Caddy. It works well and wasn't too hard to set up.
This wiki is served from a Docker container running Mediawiki, reverse-proxied by Caddy. It works well and wasn't too hard to set up.


== For later ==
=== To-do ===
* Attempt to make a back up and restore to local machine. If successful:
** Take snapshots and keep them in my standard set of backed up files.
** Automate using the snapshots from the source-of-truth VPS wiki to deploy a home-based LAN server. Being able to do this means the snapshots are working.
* Get file uploads working
* [done] Change logo
* [done] Set <code>$wgCapitalLinks</code> to <code>false</code>
 
== Caddy ==
 
=== For later ===


https://github.com/DoTheEvo/selfhosted-apps-docker
https://github.com/DoTheEvo/selfhosted-apps-docker
Line 17: Line 27:


subdomain2.example.com {
subdomain2.example.com {
    # If serving files from the host
    root * /host_path/to/your/files
    file_server
     # Reverse proxy to a service on the host. More info: https://caddyserver.com/docs/quick-starts/reverse-proxy
     # Reverse proxy to a service on the host. More info: https://caddyserver.com/docs/quick-starts/reverse-proxy
     # Maybe useful for working on a Flask site outside of Docker-land. Does it work?
     # Maybe useful for working on a Flask site outside of Docker-land. Does it work?
Line 26: Line 32:
}
}
</pre>
</pre>
== Misc ==
https://github.com/awesome-selfhosted/awesome-selfhosted

Latest revision as of 20:21, 29 May 2025

This wiki

This wiki is served from a Docker container running Mediawiki, reverse-proxied by Caddy. It works well and wasn't too hard to set up.

To-do

  • Attempt to make a back up and restore to local machine. If successful:
    • Take snapshots and keep them in my standard set of backed up files.
    • Automate using the snapshots from the source-of-truth VPS wiki to deploy a home-based LAN server. Being able to do this means the snapshots are working.
  • Get file uploads working
  • [done] Change logo
  • [done] Set $wgCapitalLinks to false

Caddy

For later

https://github.com/DoTheEvo/selfhosted-apps-docker


Try these two configs out:

subdomain1.example.com {
    # Static files. More info: https://caddyserver.com/docs/caddyfile/directives/file_server
    root * /host_path/to/your/files
    file_server
}

subdomain2.example.com {
    # Reverse proxy to a service on the host. More info: https://caddyserver.com/docs/quick-starts/reverse-proxy
    # Maybe useful for working on a Flask site outside of Docker-land. Does it work?
    reverse_proxy 172.17.0.1:8080
}

Misc

https://github.com/awesome-selfhosted/awesome-selfhosted