2850 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
ecad252653
system: Use new setup mechanism 2016-02-13 13:52:07 +05:30
Sunil Mohan Adapa
4066a2f8d6
shaarli: Use new setup mechanism 2016-02-13 13:52:03 +05:30
Sunil Mohan Adapa
bdfd20d661
roundcube: Use new setup mechanism 2016-02-13 13:51:59 +05:30
Sunil Mohan Adapa
c2cb1f32b9
restore: Use new setup mechanism 2016-02-13 13:51:55 +05:30
Sunil Mohan Adapa
f78a558357
repro: Use new setup mechanism 2016-02-13 13:51:51 +05:30
Sunil Mohan Adapa
528fe47c16
quassel: Use new setup mechanism 2016-02-13 13:51:48 +05:30
Sunil Mohan Adapa
a33f68f051
power: Use new setup mechanism 2016-02-13 13:51:44 +05:30
Sunil Mohan Adapa
5e094934b0
pagekite: Use new setup mechanism 2016-02-13 13:51:40 +05:30
Sunil Mohan Adapa
166ff9b5bf
owncloud: Use new setup mechanism
- Also reorganize views.
2016-02-13 13:51:36 +05:30
Sunil Mohan Adapa
b916d95a0b
openvpn: Use new setup mechanism 2016-02-13 13:51:32 +05:30
Sunil Mohan Adapa
335eeccee9
networks: Use new setup mechanism 2016-02-13 13:51:28 +05:30
Sunil Mohan Adapa
0568bf259c
names: Use new setup mechanism 2016-02-13 13:51:24 +05:30
Sunil Mohan Adapa
41e730d7ac
mumble: Use new setup mechanism 2016-02-13 13:51:17 +05:30
Sunil Mohan Adapa
608d19dc2b
monkeysphere: Use new setup mechanism 2016-02-13 13:51:09 +05:30
Sunil Mohan Adapa
cef8f5c2c4
letsencrypt: Use new setup mechanism 2016-02-13 13:51:05 +05:30
Sunil Mohan Adapa
cceddf5c0a
ikiwiki: Use new setup mechanism 2016-02-13 13:51:01 +05:30
Sunil Mohan Adapa
38bf4d4549
firewall: Use new setup mechanism
- Also reorganize module to separate out views.
2016-02-13 13:50:57 +05:30
Sunil Mohan Adapa
1842db42da
dynamicdns: Use new setup mechanism 2016-02-13 13:50:54 +05:30
Sunil Mohan Adapa
28a889c54b
diagnostics: Use new setup mechanism 2016-02-13 13:50:50 +05:30
Sunil Mohan Adapa
68881f720c
deluge: Use new setup mechanism 2016-02-13 13:50:46 +05:30
Sunil Mohan Adapa
0e0b8318d0
datetime: Use new setup mechanism 2016-02-13 13:50:42 +05:30
Sunil Mohan Adapa
9d1a940d7c
config: Use new setup mechanism 2016-02-13 13:50:39 +05:30
Sunil Mohan Adapa
ad8fea5eb2
avahi: Use new setup mechanism 2016-02-13 13:50:36 +05:30
Sunil Mohan Adapa
83a56bba93
apps: Use new setup mechanism 2016-02-13 13:50:32 +05:30
Sunil Mohan Adapa
b112c82889
privoxy: Use new setup mechanism 2016-02-13 13:50:28 +05:30
Sunil Mohan Adapa
7f4c5f7410
Make app names as module identifiers
- The last part of the module import path is the module name.  This also
  becomes the Django app name.  Apps names have to be unique.  Hence,
  there is no scope for two different modules with same name but
  different load path to exist in the project.

- Most uses of list of loaded modules are dealing with app names instead
  of full module load path.  This is due to the fact that Django deals
  with app names and not module paths.

- It is also somewhat clumsy to access a loaded module as we are
  re-importing every time to get access module.

- Simplify all of the above by using app names are module identifiers
  and maintaing an ordered dictionary of app names to loadded modules.

- Remove unused imports.

- Minor styling fixes.
2016-02-13 13:49:23 +05:30
Joel Valleroy
a23a40dede Removed default password warning. Fixes #386. 2016-02-02 00:12:07 +00:00
Sunil Mohan Adapa
65a1985cc0
tor: Minor fixes and styling
- Add note about resetarting firewalld.

- Refactor checking for running configuration process.

- Fix error message being show as info message.

- Minor indentation fixes.
2016-01-30 19:41:13 +05:30
James Valleroy
e401a5a028
tor: Get fresh status after config completes 2016-01-30 18:08:56 +05:30
James Valleroy
07130b6007
tor: Run configuration update as background task
- Closes: #294.
2016-01-30 18:08:40 +05:30
James Valleroy
0844151244
tor: Combine all configuration actions 2016-01-30 18:07:42 +05:30
James Valleroy
a3845e2b28
tor: Add service for bridge relay ports 2016-01-30 18:07:34 +05:30
James Valleroy
315c7f1e93
tor: Notify firewall about socks service status 2016-01-30 18:07:04 +05:30
James Valleroy
376b5c6feb
tor: Refactor into separate files for forms/views 2016-01-30 18:06:33 +05:30
Sunil Mohan Adapa
506bff5c7b
users: Multiple SSH keys and better home creation
- Allow setting multiple SSH keys one per line (which is already
  allowed, but advertise it better).

- Use mkhomedir_helper to create the user's home directory.  Avoid
  security and accuracy complexities of creating a home directory.

- Allow homes that don't exist in /home.
2016-01-30 15:30:52 +05:30
James Valleroy
ad7d6db968
users: Add field to set user's SSH key. 2016-01-30 15:30:32 +05:30
Sunil Mohan Adapa
57fd2a2ea2
repro: Minor styling and message changes
- Indentation for HTML template consistent with other templates.

- Style 'repro' like the upstream project does in all small case.

- Better describe the functions of a SIP server and organize the actions
  to be done by the user.

- Set the menu weight so that it does not clash with an existing module.

- Name the application 'SIP Server' instead of 'SIP Proxy' as that
  better describes the capabilities of the repro and is simpler for
  users to understand.
2016-01-27 17:49:41 +05:30
Sunil Mohan Adapa
5805351f50
repro: Split firewall service as sip and sips
- Since SIP is a generic protocol implemented by various servers, the
  firewall service must describe the protocol instead of the
  application.  This is similar to the way firewalld handles
  http/https.  This also make the service descriptions more acceptable
  by upstream.

- Split unencrypted and encrypted services so that one can enabled
  without the other (a possibility with SIP).

- Add 5061/UDP for SIP over DTLS and DCCP.
2016-01-27 17:49:32 +05:30
James Valleroy
b7e44eb429
Add repro SIP proxy module. 2016-01-27 17:49:20 +05:30
Caly
15312fe595
Update messages for simplicity/consistency/grammer
- Closes #375 and #380.

- More use of configurable brand name.
2016-01-24 12:14:25 +05:30
Sunil Mohan Adapa
572e68dc36
Make remaining uses of brand name customizable 2016-01-24 00:50:14 +05:30
Sunil Mohan Adapa
4602c5bfce
Use translated brand name in templates
Using brand name directly from configuration means that it can't be
easily translated.  Instead use the translated brand name sent in my the
context processor.
2016-01-24 00:37:01 +05:30
Sunil Mohan Adapa
afb00f98ab
upgrades: Make manual upgrade a background process
- Closes #366 and closes #304 (all sub-tasks).

- Start new process group with setsid() by sending
  start_new_session=True

- Detach from parent process fds by closing all FDs and attaching stdin,
  stdou and stderr to /dev/null.

- Don't wait for the process to complete.

- This allows for upgrading Plinth while upgrades are trigged from
  Plinth itself.

- Show log of upgrade exection instead of output and error log of the
  process which can no longer be collected.  This has the advantage of
  showing automatic executions also.

- Rewrite the mechanism to detect whether upgrades can be run.  It is
  now based on whether the package manager is busy.  This has the
  advantage of working properly if other apt processes are running,
  automatic upgrades are running, etc.

- Busy status works even if Plinth is restarted while upgrades are in
  progress.

- More descriptive messages showing that upgrades don't have to be
  triggered manually.

- Warn that other packages can't be installed while upgrades are
  running, which may take a long time.

- Warn the users of potential temporary unavailability of
  Plinth/Apache2.
2016-01-20 21:13:18 -05:00
Sunil Mohan Adapa
1a17819380
letsencrypt: New basic module for SSL certficates
This is the first implementation for obtaining certificates from Let's
Encrypt.  Following the features and limitations.

- Requires manual operation.

- Registrations are done anonymously.

- Supports revoking and re-obtaining certificates.  Does not have a way
  to show if a certficate is already renewed.

- Automatic renewal is not available.

- Details messages in case of errors.

- Has ability to switch to testing mode by using LE's staging servers.

- Sets up Apache configuration for the domain and enables/disables it.
  When certificates are not available for a domain, default website
  configuration is used.  When certificates are available, separate
  SSL website configuration for each domain is used.

- Many domain will work with a single IP address with the help of Server
  Name Indication (SNI) which is supported by all modern browsers.

- Supports diagnostics on websites.
2016-01-14 14:18:43 +05:30
Sunil Mohan Adapa
6afe350fe5
monkeysphere: Proper domain handling
Action:

- Don't use const for HOST_TOOL, it is unlikely to be ever changed.

- Don't pass multiple key ids as single string to monkeysphere-host.

- Use JSON for data transfer with action instead of custom format and
  parsing.

- Minor styling fixes.

Template:

- More consistent indentation.

- Improve the description.

- Add headers to the table.

- List domains instead of domain types.

URLs:

- Take domain as argument for key generation.

- Narrow down fingerprint matching regex.

Views:

- Take domain as argument for key generation.  Verify that domain is
  valid.

- Minor grammer fix to cancel message.

- Use JSON format for getting key status.

- List domains instead of domain types.
2016-01-14 14:00:23 +05:30
James Valleroy
70d85cbd6f
monkeysphere: New module for verifying SSH servers
monkeysphere: Run publish as background task, allow user to cancel.

Small fixes to names module:

- Remove unused ugettext import.

- Change SERVICES to tuple.

- If a domain is not available for a service type, return None instead
  of (translated) "Not Available".

- Rename get_services -> get_enabled_services.
2016-01-14 14:00:08 +05:30
cat-git
2f9b419f4f
networks: Fix grammer in two sentences
Minor changes to English grammar to make user messages more
readable/translatable.
2016-01-08 15:04:13 +05:30
cat-git
d06a88ced2
help: Add link to irc webchat (Closes: #292) 2016-01-08 14:52:09 +05:30
Daniel Steglich
de2d2323d4 Merge pull request 338 from SunilMohanAdapa:
Refactoring of networks module.
2016-01-01 22:00:28 +00:00
Sunil Mohan Adapa
96f9fee96b
firstboot: Fix double nested navbar 2015-12-30 01:10:45 +05:30