Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Community Packages
  3. Simple Static: the simplest way to host static websites on Cloudron

Simple Static: the simplest way to host static websites on Cloudron

Scheduled Pinned Locked Moved Community Packages
12 Posts 6 Posters 1.4k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J joseph

    Given we are already looking to improve Surfer, we are happy to assess any feature requests. What do you mean by no control over caching 🙂 ? Isn't it already only serving static pages?

    TheMeerkatT
    TheMeerkatT
    TheMeerkat
    CA Maintainer
    wrote on last edited by TheMeerkat
    #3

    @joseph Surfer never really seemed to cache any static assets for me; every time I reloaded the page, it seemed to serve it fresh again. Simple Static has these default options just for caching:

    # --- Caching ---
    
    caching:
      # Enable ETag and Last-Modified headers. Default: true.
      etag: true
    
      # Cache-Control max-age for static assets (seconds). Default: 3600.
      # Set to 0 to send no-cache.
      max_age: 3600
    
      # File extensions to cache (if set, only these are cached; unset = all).
      # extensions:
      #   - css
      #   - js
      #   - png
      #   - jpg
      #   - svg
      #   - woff2
    

    Then there are things like custom redirects, custom headers, etc. It's a large degree of direct control with no app running on top.

    1 Reply Last reply
    2
    • TheMeerkatT TheMeerkat

      I was dissatisfied with the two options for hosting static sites on Cloudron, Surfer (no server control for, e.g., caching) and the generic LAMP app (unnecessary). So I made my own! Simple Static uses only nginx and a YAML config file.

      Repo: https://codeberg.org/TheMeerkat/Simple-Static
      CloudronVersions.json: https://codeberg.org/TheMeerkat/Simple-Static/raw/branch/main/CloudronVersions.json
      For the CLI: cloudron install --versions-url https://codeberg.org/TheMeerkat/Simple-Static/raw/branch/main/CloudronVersions.json

      Extremely simple app with included instructions.

      andreasduerenA
      andreasduerenA
      andreasdueren
      wrote on last edited by
      #4

      @TheMeerkat Nice! Nothing against nginx but have you considered caddy?

      TheMeerkatT 1 Reply Last reply
      2
      • andreasduerenA andreasdueren

        @TheMeerkat Nice! Nothing against nginx but have you considered caddy?

        TheMeerkatT
        TheMeerkatT
        TheMeerkat
        CA Maintainer
        wrote on last edited by TheMeerkat
        #5

        @andreasdueren Three reasons I chose nginx:

        1. nginx is already in the base image and central to the Cloudron model.
        2. nginx is incredibly light.
        3. Caddy’s biggest selling point (auto-HTTPS) is completely irrelevant to Cloudron apps, which are behind a reverse proxy anyway.
        1 Reply Last reply
        4
        • TheMeerkatT TheMeerkat

          I was dissatisfied with the two options for hosting static sites on Cloudron, Surfer (no server control for, e.g., caching) and the generic LAMP app (unnecessary). So I made my own! Simple Static uses only nginx and a YAML config file.

          Repo: https://codeberg.org/TheMeerkat/Simple-Static
          CloudronVersions.json: https://codeberg.org/TheMeerkat/Simple-Static/raw/branch/main/CloudronVersions.json
          For the CLI: cloudron install --versions-url https://codeberg.org/TheMeerkat/Simple-Static/raw/branch/main/CloudronVersions.json

          Extremely simple app with included instructions.

          timconsidineT
          timconsidineT
          timconsidine
          App Dev CA Maintainer Super Fan
          wrote on last edited by
          #6

          @TheMeerkat can you add to ca.cloudron.io (otherwise not visible).

          Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

          TheMeerkatT 1 Reply Last reply
          4
          • timconsidineT timconsidine

            @TheMeerkat can you add to ca.cloudron.io (otherwise not visible).

            TheMeerkatT
            TheMeerkatT
            TheMeerkat
            CA Maintainer
            wrote on last edited by TheMeerkat
            #7

            @timconsidine thanks for the reminder! done:
            https://ca.cloudron.io/app/simple-static

            Despite switching everything else away from Codeberg, I'll keep Simple Static there indefinitely. It's a nothing package that would take more effort to switch than not.

            robiR 1 Reply Last reply
            1
            • TheMeerkatT TheMeerkat

              @timconsidine thanks for the reminder! done:
              https://ca.cloudron.io/app/simple-static

              Despite switching everything else away from Codeberg, I'll keep Simple Static there indefinitely. It's a nothing package that would take more effort to switch than not.

              robiR
              robiR
              robi
              wrote on last edited by
              #8

              @TheMeerkat multi domain support?

              Frequency tech & energy mastery

              TheMeerkatT 1 Reply Last reply
              0
              • jadudmJ
                jadudmJ
                jadudm
                wrote on last edited by
                #9

                I would vote for this to be considered as a base/standard package in the Cloudron store. It has no overhead from the base image, and it is the simplest possible static hosting solution possible, based on a time-proven/industry standard web server (nginx).

                Excellent stuff, @themeerkat . Thank you.

                I use Cloudron on a DXP2800 NAS w/ 8TB in ZFS RAID1

                TheMeerkatT 1 Reply Last reply
                5
                • jadudmJ jadudm

                  I would vote for this to be considered as a base/standard package in the Cloudron store. It has no overhead from the base image, and it is the simplest possible static hosting solution possible, based on a time-proven/industry standard web server (nginx).

                  Excellent stuff, @themeerkat . Thank you.

                  TheMeerkatT
                  TheMeerkatT
                  TheMeerkat
                  CA Maintainer
                  wrote last edited by
                  #10

                  @jadudm thanks so much!

                  also, updated to the latest base image, which let me shave ~2GB off of the package. even smaller and lighter weight now!

                  1 Reply Last reply
                  3
                  • robiR robi

                    @TheMeerkat multi domain support?

                    TheMeerkatT
                    TheMeerkatT
                    TheMeerkat
                    CA Maintainer
                    wrote last edited by
                    #11

                    @robi if you open an issue on Codeberg, i'll take a look. 😺

                    robiR 1 Reply Last reply
                    3
                    • TheMeerkatT TheMeerkat

                      @robi if you open an issue on Codeberg, i'll take a look. 😺

                      robiR
                      robiR
                      robi
                      wrote last edited by
                      #12

                      @TheMeerkat sorry, I don't have the desire to make an account.

                      Frequency tech & energy mastery

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search