Jump to content

Infrastructure: Difference between revisions

From wiki.rayhan.com
Created page with "== Current Infra == 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 Read == https://github.com/DoTheEvo/selfhosted-apps-docker"
 
No edit summary
Line 3: Line 3:
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.


== To Read ==
== For later ==


https://github.com/DoTheEvo/selfhosted-apps-docker
https://github.com/DoTheEvo/selfhosted-apps-docker
Try these two configs out:
<pre>
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 {
    # 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
    # Maybe useful for working on a Flask site outside of Docker-land. Does it work?
    reverse_proxy 172.17.0.1:8080
}
</pre>

Revision as of 16:56, 20 May 2025

Current Infra

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

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 {
    # 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
    # Maybe useful for working on a Flask site outside of Docker-land. Does it work?
    reverse_proxy 172.17.0.1:8080
}