azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.1k stars 112 forks source link

[FEAT]: Host a static application (SFTP) access if possible. #83

Closed ccjcan closed 1 year ago

ccjcan commented 1 year ago

Feature Description

Hello, I'm enjoying Cosmos so far, was able to install and running a few containers. I'd like to host a simple static website, likely in /home//www, should be behind authentication and if possible have access via SFTP. I'm used to YunoHost, this would be similar to their My Custom Web app. I'd appreciate if anyone could point me in the right direction.

azukaar commented 1 year ago

When you go to URL, you can create a URL of type "static" to show a static site (if said static site is an SPA, you can also create a URL of type SPA)

ccjcan commented 1 year ago

I’d like to host the static app on the same server, do you recommend a simple folder www with index.html (for example) or a container with nginx?)

azukaar commented 1 year ago

Static URL take a folder not a container as an argument, so you can put the folder anywhere and set the arg to the /path (make sure it is mounted of course, or use /mnt/host/... to access a folder on your host)

image