This commit is contained in:
21
config/caddy/couch.mhny.dev.caddy
Normal file
21
config/caddy/couch.mhny.dev.caddy
Normal file
@@ -0,0 +1,21 @@
|
||||
couch.mhny.dev {
|
||||
root * /var/www/couchos
|
||||
|
||||
handle_path /api/* {
|
||||
reverse_proxy 100.64.0.15:8765 {
|
||||
header_up Authorization "Bearer {env.COUCHD_BEARER_TOKEN}"
|
||||
}
|
||||
}
|
||||
|
||||
handle {
|
||||
file_server
|
||||
}
|
||||
|
||||
header {
|
||||
Content-Security-Policy "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self'; base-uri 'none'; frame-ancestors 'none'"
|
||||
Permissions-Policy "camera=(), geolocation=(), microphone=()"
|
||||
Referrer-Policy "no-referrer"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
}
|
||||
}
|
||||
12
config/couchd.example.json
Normal file
12
config/couchd.example.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"bind_address": "100.64.0.15",
|
||||
"port": 8765,
|
||||
"token_file": "/home/couch/.config/couchd/token",
|
||||
"couch_home": "/home/couch",
|
||||
"iso_path": null,
|
||||
"state_file": "/home/couch/.local/state/couchd/state.json",
|
||||
"display": ":0",
|
||||
"xdg_runtime_dir": null,
|
||||
"xbox_bluetooth_address": null,
|
||||
"launcher_shortcut": null
|
||||
}
|
||||
4
config/lightdm/50-couchos.conf
Normal file
4
config/lightdm/50-couchos.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
[Seat:*]
|
||||
autologin-user=couch
|
||||
autologin-session=xfce
|
||||
user-session=xfce
|
||||
4
config/logind/50-couchos.conf
Normal file
4
config/logind/50-couchos.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
[Login]
|
||||
HandleLidSwitchExternalPower=ignore
|
||||
HandleLidSwitchDocked=ignore
|
||||
IdleAction=ignore
|
||||
Reference in New Issue
Block a user