informatica:software:algernon
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| informatica:software:algernon [2025/10/08 11:25] – tempwin | informatica:software:algernon [2025/10/08 13:43] (actual) – tempwin | ||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| ====== Algernon ====== | ====== Algernon ====== | ||
| - | Servidor web auto-contenido escrito en [[..: | + | **Servidor web** auto-contenido escrito en [[..: |
| * [[https:// | * [[https:// | ||
| Línea 45: | Línea 45: | ||
| image: xyproto/ | image: xyproto/ | ||
| container_name: | container_name: | ||
| + | ports: | ||
| + | - 3000:3000 | ||
| volumes: | volumes: | ||
| - | - ./localhost:/ | + | - ./www:/ |
| - | entrypoint: ["/ | + | entrypoint: ["/ |
| restart: unless-stopped | restart: unless-stopped | ||
| </ | </ | ||
| - | Tras ejecutarlo, podremos ir a '' | + | Tras ejecutarlo, podremos ir a '' |
| ===== Uso ===== | ===== Uso ===== | ||
| Línea 67: | Línea 69: | ||
| <code bash> | <code bash> | ||
| algernon -a . | algernon -a . | ||
| + | </ | ||
| + | |||
| + | ===== Opciones ===== | ||
| + | |||
| + | A continuación se muestra la sintaxos del ejecutable de **Algernon** y las diferentes opciones que admite como argumentos: | ||
| + | |||
| + | < | ||
| + | Algernon 1.17.4 | ||
| + | |||
| + | Web Server | ||
| + | |||
| + | Syntax: | ||
| + | algernon [flags] [file or directory to serve] [host][: | ||
| + | |||
| + | Available flags: | ||
| + | -a, --autorefresh | ||
| + | Sets cache mode to " | ||
| + | -b, --bolt | ||
| + | for the Bolt database. | ||
| + | -c, --statcache | ||
| + | Only use if served files will not be removed. | ||
| + | -d, --debug | ||
| + | -e, --dev Development mode: Enables Debug mode, uses | ||
| + | | ||
| + | -h, --help | ||
| + | -l, --lua Don't serve anything, just present the Lua REPL. | ||
| + | -m View the given Markdown file in the browser. | ||
| + | Quits after the file has been served once. | ||
| + | | ||
| + | -n, --nobanner | ||
| + | -o, --open=EXECUTABLE | ||
| + | | ||
| + | -p, --prod | ||
| + | HTTP on port 80. Uses / | ||
| + | | ||
| + | | ||
| + | -q, --quiet | ||
| + | -r, --redirect | ||
| + | -s, --server | ||
| + | -t, --httponly | ||
| + | -u Serve over QUIC / HTTP3. | ||
| + | -v, --version | ||
| + | -V, --verbose | ||
| + | -z, --quit | ||
| + | --accesslog=FILENAME | ||
| + | --addr=[HOST][: | ||
| + | --boltdb=FILENAME | ||
| + | --cache=MODE | ||
| + | " | ||
| + | " | ||
| + | Lua, GCSS, Markdown and JSX. | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | --cachesize=N | ||
| + | --cert=FILENAME | ||
| + | --conf=FILENAME | ||
| + | --clear | ||
| + | when handling permissions. | ||
| + | --cookiesecret=STRING | ||
| + | --ctrld | ||
| + | --dbindex=INDEX | ||
| + | --dir=DIRECTORY | ||
| + | --domain | ||
| + | name as the requested domain. | ||
| + | --eventrefresh=DURATION | ||
| + | (the default is " | ||
| + | --eventserver=[HOST][: | ||
| + | --http2only | ||
| + | --internal=FILENAME | ||
| + | --key=FILENAME | ||
| + | --largesize=N | ||
| + | --letsencrypt | ||
| + | | ||
| + | --limit=N | ||
| + | (the default is 10). | ||
| + | --log=FILENAME | ||
| + | --maria=DSN | ||
| + | --mariadb=NAME | ||
| + | --ncsa=FILENAME | ||
| + | --nocache | ||
| + | --nodb | ||
| + | --noheaders | ||
| + | --nolimit | ||
| + | --postgres=DSN | ||
| + | --postgresdb=NAME | ||
| + | --sqlite=FILENAME | ||
| + | --redis=[HOST][: | ||
| + | --rawcache | ||
| + | --servername=STRING | ||
| + | --stricter | ||
| + | --theme=NAME | ||
| + | | ||
| + | | ||
| + | | ||
| + | --timeout=N | ||
| + | --watchdir=DIRECTORY | ||
| + | -x, --simple | ||
| + | | ||
| + | |||
| + | Example usage: | ||
| + | |||
| + | For auto-refreshing a webpage while developing: | ||
| + | algernon --dev --httponly --debug --autorefresh --bolt --server . :4000 | ||
| + | |||
| + | Serve / | ||
| + | algernon -c --domain --server --cachesize 67108864 --prod /srv | ||
| + | |||
| + | Serve the current dir over QUIC, port 7000, no banner: | ||
| + | algernon -s -u -n . :7000 | ||
| + | |||
| + | Serve the current directory over HTTP, port 3000. No limits, cache, | ||
| + | permissions or database connections: | ||
| + | algernon -x | ||
| </ | </ | ||
informatica/software/algernon.1759915512.txt.gz · Última modificación: por tempwin
