-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ (linkstack): Added a new role
linkstack
- Loading branch information
Showing
17 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: "3.8" | ||
|
||
services: | ||
linkstack: | ||
image: linkstackorg/linkstack | ||
container_name: linkstack | ||
hostname: linkstack | ||
env_file: .env | ||
ports: | ||
- "127.0.0.1:8880:80" | ||
restart: unless-stopped | ||
volumes: | ||
- linkstack:/htdocs | ||
|
||
volumes: | ||
linkstack: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- name: Include service role | ||
ansible.builtin.include_role: | ||
name: "service" | ||
vars: | ||
service_name: "linkstack" | ||
service_fqdn: "links.{{ domain }}" | ||
service_nginx_port: "8880" | ||
service_certbot: true | ||
service_nginx: true | ||
service_tor: true | ||
service_docker_compose: true | ||
service_systemd_service: true | ||
|
||
- name: Copy LinkStack environment file | ||
ansible.builtin.template: | ||
src: ".env.j2" | ||
dest: "{{ base_dir }}/linkstack/.env" | ||
mode: "0640" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
HTTP_SERVER_NAME: "links.{{ domain }}" | ||
HTTPS_SERVER_NAME: "links.{{ domain }}" | ||
SERVER_ADMIN: "{{ mailer_from }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
server { | ||
include listen-443; | ||
server_name {{ server_name }}; | ||
|
||
include ssl_params; | ||
ssl_certificate /etc/letsencrypt/live/{{ server_name }}/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/{{ server_name }}/privkey.pem; | ||
|
||
include header_params; | ||
|
||
location / { | ||
include proxy_params; | ||
|
||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Forwarded-Host $host; | ||
|
||
# Fixes Mixed Content errors. | ||
add_header 'Content-Security-Policy' 'upgrade-insecure-requests'; | ||
|
||
proxy_pass http://127.0.0.1:{{ server_port }}/; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters