Added portal website and moved from ombi to ombi-beta
This commit is contained in:
parent
28ca0e76a6
commit
ae09064214
23 changed files with 2120 additions and 14 deletions
|
@ -1,3 +1,3 @@
|
||||||
aur:
|
aur:
|
||||||
pkgs:
|
pkgs:
|
||||||
ombi: []
|
ombi-beta: []
|
||||||
|
|
3
pillars/roles/aurpkgs/portal.sls
Normal file
3
pillars/roles/aurpkgs/portal.sls
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
aur:
|
||||||
|
pkgs:
|
||||||
|
php-yaml: []
|
|
@ -7,3 +7,11 @@ git:
|
||||||
force: true
|
force: true
|
||||||
email: "actcur@actcur.com"
|
email: "actcur@actcur.com"
|
||||||
name: "Actaeus Curabitur"
|
name: "Actaeus Curabitur"
|
||||||
|
web:
|
||||||
|
repo: "ssh://gogs@git.actcur.com:5022/actcur/portal.git"
|
||||||
|
path: "/srv/http/portal"
|
||||||
|
branch: "master"
|
||||||
|
key: "git_actcur"
|
||||||
|
force: true
|
||||||
|
email: "actcur@actcur.com"
|
||||||
|
name: "Actaeus Curabitur"
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8080
|
port: 8080
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Identity:
|
||||||
|
authelia:
|
||||||
|
name: Authentication
|
||||||
|
summary: Authelia Authentication Server
|
||||||
|
public: true
|
||||||
|
|
|
@ -10,3 +10,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8080
|
port: 8080
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Identity:
|
||||||
|
cal:
|
||||||
|
name: Calender
|
||||||
|
summary: Baikal Calender Server
|
||||||
|
public: true
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8112
|
port: 8112
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Video:
|
||||||
|
deluge:
|
||||||
|
name: Torrents
|
||||||
|
summary: Deluge Torrent Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8443
|
port: 8443
|
||||||
prot: https
|
prot: https
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Identity:
|
||||||
|
ipa:
|
||||||
|
name: Identity, Policy and Audit
|
||||||
|
summary: FreeIPA Domain Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 3000
|
port: 3000
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Misc:
|
||||||
|
git:
|
||||||
|
name: Git
|
||||||
|
summary: GOGS Git Server
|
||||||
|
public: true
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
nginx:
|
|
||||||
git2:
|
|
||||||
auth: none
|
|
||||||
https:
|
|
||||||
port: 8000
|
|
||||||
prot: http
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8080
|
port: 8080
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Misc:
|
||||||
|
icinga:
|
||||||
|
name: Host Monitoring
|
||||||
|
summary: Icinga Monitoring Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 9117
|
port: 9117
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Video:
|
||||||
|
jackett:
|
||||||
|
name: Torrent Indexers
|
||||||
|
summary: Jackett Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -2,5 +2,12 @@ nginx:
|
||||||
ombi:
|
ombi:
|
||||||
auth: none
|
auth: none
|
||||||
https:
|
https:
|
||||||
port: 3579
|
port: 5000
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Video:
|
||||||
|
ombi:
|
||||||
|
name: TV/Movie Requests
|
||||||
|
summary: OMBI Plex Requests Server
|
||||||
|
public: true
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8080
|
port: 8080
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Identity:
|
||||||
|
pass:
|
||||||
|
name: Password Manager
|
||||||
|
summary: Teampass Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
nginx:
|
nginx:
|
||||||
plex:
|
plex:
|
||||||
auth: 2fa
|
auth: none
|
||||||
https:
|
https:
|
||||||
port: 32400
|
port: 32400
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Video:
|
||||||
|
plex:
|
||||||
|
name: Plex
|
||||||
|
summary: Plex Media Server
|
||||||
|
public: true
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 7878
|
port: 7878
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Video:
|
||||||
|
radarr:
|
||||||
|
name: Movie Downloader
|
||||||
|
summary: Radarr Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8989
|
port: 8989
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Video:
|
||||||
|
sonarr:
|
||||||
|
name: TV Show Downloader
|
||||||
|
summary: Sonarr Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8080
|
port: 8080
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Misc:
|
||||||
|
sync:
|
||||||
|
name: File Sync
|
||||||
|
summary: Syncthing Server
|
||||||
|
public: false
|
||||||
|
|
|
@ -4,3 +4,10 @@ nginx:
|
||||||
https:
|
https:
|
||||||
port: 8080
|
port: 8080
|
||||||
prot: http
|
prot: http
|
||||||
|
|
||||||
|
portal:
|
||||||
|
Misc:
|
||||||
|
tt:
|
||||||
|
name: RSS Reader
|
||||||
|
summary: TTRSS Server
|
||||||
|
public: true
|
||||||
|
|
|
@ -88,8 +88,8 @@ access_control:
|
||||||
# The rules that apply to anyone.
|
# The rules that apply to anyone.
|
||||||
# The value is a list of rules.
|
# The value is a list of rules.
|
||||||
any:
|
any:
|
||||||
- domain: '*'
|
- domain: 'x'
|
||||||
policy: allow
|
policy: deny
|
||||||
|
|
||||||
# Group-based rules. The key is a group name and the value
|
# Group-based rules. The key is a group name and the value
|
||||||
# is a list of rules.
|
# is a list of rules.
|
||||||
|
@ -98,7 +98,14 @@ access_control:
|
||||||
# All resources in all domains
|
# All resources in all domains
|
||||||
- domain: '*.actcur.com'
|
- domain: '*.actcur.com'
|
||||||
policy: allow
|
policy: allow
|
||||||
|
video_admins:
|
||||||
|
# All resources in all domains
|
||||||
|
- domain: 'sonarr.actcur.com'
|
||||||
|
policy: allow
|
||||||
|
- domain: 'radarr.actcur.com'
|
||||||
|
policy: allow
|
||||||
|
- domain: 'deluge.actcur.com'
|
||||||
|
policy: allow
|
||||||
|
|
||||||
# Configuration of session cookies
|
# Configuration of session cookies
|
||||||
#
|
#
|
||||||
|
|
|
@ -16,8 +16,46 @@ server {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /auth_verify {
|
||||||
|
internal;
|
||||||
|
proxy_pass_request_body off;
|
||||||
|
proxy_set_header X-Original-URI $request_uri;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header Content-Length "";
|
||||||
|
|
||||||
|
proxy_pass https://authelia.actcur.com/verify;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /unauthenticated.php {
|
||||||
|
|
||||||
|
try_files $uri $document_root$fastcgi_script_name =404;
|
||||||
|
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
include fastcgi.conf;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
root /srv/http/portal/public;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /authenticated.php {
|
||||||
|
auth_request /auth_verify;
|
||||||
|
|
||||||
|
error_page 401 =302 https://portal.actcur.com/unauthenticated.php;
|
||||||
|
|
||||||
|
try_files $uri $document_root$fastcgi_script_name =404;
|
||||||
|
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
include fastcgi.conf;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
root /srv/http/portal/public;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /srv/http;
|
return 301 https://portal.actcur.com/authenticated.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_log /var/log/nginx/portal_error.log;
|
error_log /var/log/nginx/portal_error.log;
|
||||||
|
@ -39,7 +77,7 @@ server {
|
||||||
location / {
|
location / {
|
||||||
rewrite ^ https://$host$request_uri? permanent;
|
rewrite ^ https://$host$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_log /var/log/nginx/portal_error.log;
|
error_log /var/log/nginx/portal_error.log;
|
||||||
access_log /var/log/nginx/portal_access.log;
|
access_log /var/log/nginx/portal_access.log;
|
||||||
}
|
}
|
||||||
|
|
26
states/roles/maintain/portal/init.sls
Normal file
26
states/roles/maintain/portal/init.sls
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
portal_php-fpm:
|
||||||
|
pkg.installed:
|
||||||
|
- name: php-fpm
|
||||||
|
service.running:
|
||||||
|
- name: php-fpm
|
||||||
|
- enable: true
|
||||||
|
- watch:
|
||||||
|
- file: /etc/php/php.ini
|
||||||
|
|
||||||
|
portal_php-yaml:
|
||||||
|
pkg.installed:
|
||||||
|
- name: php-yaml
|
||||||
|
|
||||||
|
/etc/php/php.ini:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://roles/maintain/portal/php.ini
|
||||||
|
|
||||||
|
/srv/http/sitedata.yml:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://roles/maintain/portal/sitedata.yml
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 444
|
||||||
|
- template: jinja
|
||||||
|
- context:
|
||||||
|
data: {{ pillar['portal'] }}
|
1931
states/roles/maintain/portal/php.ini
Normal file
1931
states/roles/maintain/portal/php.ini
Normal file
File diff suppressed because it is too large
Load diff
1
states/roles/maintain/portal/sitedata.yml
Normal file
1
states/roles/maintain/portal/sitedata.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{data}}
|
Loading…
Add table
Reference in a new issue