Applications: Difference between revisions

No edit summary
Tags: Visual edit Mobile edit Mobile web edit Advanced mobile edit
(6 intermediate revisions by 2 users not shown)
Line 11: Line 11:
* Avoid running anything that would use a '''Silly''' amount of system/natural resources
* Avoid running anything that would use a '''Silly''' amount of system/natural resources
* Your application may be better suited for being run as a part of '''The''' [[Incredible Pronounmail Suite of Interesting Applications]].
* Your application may be better suited for being run as a part of '''The''' [[Incredible Pronounmail Suite of Interesting Applications]].
* Please have the source code for your application available somewhere on the server under a '''Reasonable''' license (the AGPL is always a good choice)


== Systemd ==
== Systemd ==
Line 22: Line 23:
  Description=My cool application
  Description=My cool application
  After=network.target
  After=network.target
Before=nextcloud-web.service
   
   
  [Service]
  [Service]
Line 39: Line 39:


== Networking ==
== Networking ==
Please please please have your application listen over a Unix Domain Socket (where the socket is a filesystem node) over a Internet domain socket (where the socket is an IP address and a port number).  
[https://music.apple.com/gb/album/please-please-please/153432152?i=153432312 Please please please] have your application listen over a Unix Domain Socket (where the socket is a filesystem node) instead of an Internet domain socket (where the socket is an IP address and a port number).  


== Database(s) ==
== Database(s) ==
Line 52: Line 52:


== Alternatively ==
== Alternatively ==
If you're not expecting too much traffic, it might be wise to write your thing with [[CGI]]. We also have [[PHP]], which works quite well.
If you're not expecting too much traffic, it might be wise to write your thing with [[CGI]]. We also have [[PHP]], which works quite well.
 
The cops don't want you to know this, but you can make a static website appear dynamic by just rebuilding it every few minutes. You can use a systemd timer to do this automatically ([[please]] don't rebuild it too often or i'll [[killing|kill]] you 💔).