1
0

Add Apache httpd config example

This commit is contained in:
2022-11-01 19:44:21 +01:00
parent b8251ac4e7
commit 69cb3204b9
2 changed files with 57 additions and 1 deletions

View File

@@ -16,4 +16,59 @@ files:
|----|-----------|
|[application.properties](./web-container/src/main/resources/config/application.properties)|Main config file providing general app properties|
|[shared-application.properties](./web-container-config/src/main/resources/config/shared-application.properties)|Properties shared by all apps|
|[files-application.properties](./files/src/main/resources/config/files-application.properties)|Config file for the files app|
|[files-application.properties](./files/src/main/resources/config/files-application.properties)|Config file for the files app|
## Apache httpd config
It is advised to not expose NoBullShit-cloud directly - instead a proxy server like Apache httpd should be used to shield access.
The following config example can be used a blueprint:
```
# CSS, favicon and fonts need to be accesible without auth
# for e.g. the password protected share feature
# If the password protected share feature is not used
# the locations can be ommitted to prevent an information leak
# In fact, they can also be ommitted if the password protected
# share feature _is_ used, but then the password entry page
# will not be styled. Pick your poison.
<Location /nbscloud/css>
ProxyPass http://localhost:PORT/nbscloud
ProxyPassReverse /nbscloud
allow from all
satisfy any
</Location>
<Location /nbscloud/favicon.ico>
ProxyPass http://localhost:PORT/nbscloud
ProxyPassReverse /nbscloud
allow from all
satisfy any
</Location>
<Location /nbscloud/font>
ProxyPass http://localhost:PORT/nbscloud
ProxyPassReverse /nbscloud
allow from all
satisfy any
</Location>
# If shares should not be accessible to unknown clients
# this (and the Location directives above) can be ommitted
<Location /nbscloud/files/shares>
ProxyPass http://localhost:PORT/nbscloud
ProxyPassReverse /nbscloud
allow from all
satisfy any
</Location>
<Location /nbscloud>
ProxyPass http://localhost:PORT/nbscloud
ProxyPassReverse /nbscloud
<RequireAll>
Require all granted
AuthName "YOUR AUTH"
AuthType Basic
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</RequireAll>
</Location>
```

View File

@@ -1,5 +1,6 @@
v19:
- #22 Fix a bug with password protected shares
- Add Apache httpd config example
v18:
- #22 Password protected shares