Services/WebHosting: Difference between revisions
(Created page with "{{Template:Service | description = A few VCS tools are available to DC users. | prerequisite = You would need a shell access, FTP access or VCS repository | account = global-...") |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Template:Service |
{{Template:Service |
||
| description = |
| description = Web sites and applications hosting for DC users. |
||
| prerequisite = You would need a shell access, FTP access or VCS repository |
| prerequisite = You would need a shell access, FTP access or VCS repository |
||
| account = global-reg |
| account = global-reg |
||
| ipv6 = true |
| ipv6 = true |
||
| security_notes = This service is |
| security_notes = This service is secured using HTTPS. The remaining non-HTTPS websites are being upgraded. |
||
}} |
}} |
||
Line 15: | Line 15: | ||
* using a [[Services/VCS|VCS repository]] |
* using a [[Services/VCS|VCS repository]] |
||
* using an [[Services/FTP|FTP account]] is also possible but we try to deprecate this method. |
* using an [[Services/FTP|FTP account]] is also possible but we try to deprecate this method. |
||
== Available Protocols == |
|||
All websites are using HTTPS, with HTTP redirecting to HTTPs for security and privacy. Except if there is a very good reason, HTTP-only or without redirection is not an option. |
|||
All websites are also available via HTTP2, with the only exception being sites relying on Apache indexes because of [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850947 this bug]. |
|||
== Available Languages == |
== Available Languages == |
||
We currently support these langages: |
|||
* Python 2.7 and 3.7, and WSGI applications |
|||
* Ruby 2.5, and Rack-enabled (Rails…) applications |
|||
* Perl 5.28 |
|||
* PHP 7.3 |
|||
* NodeJS 10.15 applications |
|||
Java applications are not an option, but we may consider other languages though. |
|||
If you need libraries and tools installed, please contact an administrator. |
|||
== Website Database == |
|||
SQL databases are available, please look at this [[Services/SQL|corner of the documentation]]. |
|||
If the database node is hosted on Toushirou, then you may use UNIX socket access for increased performances. |
|||
== Website Generation == |
== Website Generation == |
||
If you have shell access, then you can handle this yourself, setup hooks/crontabs/… as needed. Contact us if you need help. |
|||
If you don't have a shell access and your application needs to be generated, please ask an administrator. It may be possible to use a hook or crontab (not involving uncontrolled code for security reasons). |
|||
== Website Authentication == |
|||
If your application does not provide authentication you can use a file created with ``htpasswd`` and add in the directory to protect a ``.htaccess`` with: |
|||
AuthBasicProvider file |
|||
AuthUserFile /srv/pages-perso/<uid>/<directory-to-protect>/.htpasswd |
|||
If you wish to require DuckCorp users you can use the DLAP provider and even combine the two: |
|||
AuthBasicProvider ldap file |
|||
AuthUserFile /srv/pages-perso/<uid>/<directory-to-protect>/.htpasswd |
|||
Require valid-user |
|||
== Technical Details == |
== Technical Details == |
Latest revision as of 14:58, 30 June 2021
Description | Web sites and applications hosting for DC users. | |||
---|---|---|---|---|
Prerequisite | You would need a shell access, FTP access or VCS repository | |||
Account | Global (registration required) | IPv6 Ready | Yes | |
Security Notes | This service is secured using HTTPS. The remaining non-HTTPS websites are being upgraded. |
Access
Web hosting happens on Toushirou.
Available methods:
- using a shell account is you already have one; if not, you might ask for one, but this is not easily granted for security reasons
- using a VCS repository
- using an FTP account is also possible but we try to deprecate this method.
Available Protocols
All websites are using HTTPS, with HTTP redirecting to HTTPs for security and privacy. Except if there is a very good reason, HTTP-only or without redirection is not an option.
All websites are also available via HTTP2, with the only exception being sites relying on Apache indexes because of this bug.
Available Languages
We currently support these langages:
- Python 2.7 and 3.7, and WSGI applications
- Ruby 2.5, and Rack-enabled (Rails…) applications
- Perl 5.28
- PHP 7.3
- NodeJS 10.15 applications
Java applications are not an option, but we may consider other languages though.
If you need libraries and tools installed, please contact an administrator.
Website Database
SQL databases are available, please look at this corner of the documentation.
If the database node is hosted on Toushirou, then you may use UNIX socket access for increased performances.
Website Generation
If you have shell access, then you can handle this yourself, setup hooks/crontabs/… as needed. Contact us if you need help.
If you don't have a shell access and your application needs to be generated, please ask an administrator. It may be possible to use a hook or crontab (not involving uncontrolled code for security reasons).
Website Authentication
If your application does not provide authentication you can use a file created with ``htpasswd`` and add in the directory to protect a ``.htaccess`` with:
AuthBasicProvider file AuthUserFile /srv/pages-perso/<uid>/<directory-to-protect>/.htpasswd
If you wish to require DuckCorp users you can use the DLAP provider and even combine the two:
AuthBasicProvider ldap file AuthUserFile /srv/pages-perso/<uid>/<directory-to-protect>/.htpasswd Require valid-user
Technical Details
This service is made using: