Compare commits
	
		
			3 Commits
		
	
	
		
			db4a97cc35
			...
			2dff2a5b82
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2dff2a5b82 | |||
| b67378e3d1 | |||
| c9d3fa0397 | 
							
								
								
									
										26
									
								
								dns.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								dns.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					# dns.yml
 | 
				
			||||||
 | 
					- name: Add A Records for thesatelliteoflove.com
 | 
				
			||||||
 | 
					  hosts: localhost
 | 
				
			||||||
 | 
					  gather_facts: false
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  vars:
 | 
				
			||||||
 | 
					    domain_name: thesatelliteoflove.com
 | 
				
			||||||
 | 
					    dns_records:
 | 
				
			||||||
 | 
					      - name: "pin"
 | 
				
			||||||
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					      - name: "home"
 | 
				
			||||||
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					      - name: "git"
 | 
				
			||||||
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  tasks:
 | 
				
			||||||
 | 
					    - name: Add A records for subdomains
 | 
				
			||||||
 | 
					      amazon.aws.route53:
 | 
				
			||||||
 | 
					        state: present
 | 
				
			||||||
 | 
					        zone: "{{ domain_name }}"
 | 
				
			||||||
 | 
					        record: "{{ item.name }}.{{ domain_name }}"
 | 
				
			||||||
 | 
					        type: A
 | 
				
			||||||
 | 
					        ttl: 300
 | 
				
			||||||
 | 
					        value: "{{ item.ip }}"
 | 
				
			||||||
 | 
					      loop: "{{ dns_records }}"
 | 
				
			||||||
@@ -2,6 +2,10 @@ auth.thesatelliteoflove.com {
 | 
				
			|||||||
    reverse_proxy authentik-server-1:9000
 | 
					    reverse_proxy authentik-server-1:9000
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pin.thesatelliteoflove.com {
 | 
				
			||||||
 | 
					    reverse_proxy pinry-pinry-1:80
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
post.thesatelliteoflove.com {
 | 
					post.thesatelliteoflove.com {
 | 
				
			||||||
    reverse_proxy postiz:5000
 | 
					    reverse_proxy postiz:5000
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -105,3 +105,7 @@
 | 
				
			|||||||
- name: Install postiz
 | 
					- name: Install postiz
 | 
				
			||||||
  import_tasks: postiz.yml
 | 
					  import_tasks: postiz.yml
 | 
				
			||||||
  tags: postiz
 | 
					  tags: postiz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Install pinry
 | 
				
			||||||
 | 
					  import_tasks: pinry.yml
 | 
				
			||||||
 | 
					  tags: pinry
 | 
				
			||||||
							
								
								
									
										19
									
								
								roles/docker/tasks/pinry.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								roles/docker/tasks/pinry.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					- name: make pinry directories
 | 
				
			||||||
 | 
					  ansible.builtin.file:
 | 
				
			||||||
 | 
					    path: "{{ item}}"
 | 
				
			||||||
 | 
					    state: directory
 | 
				
			||||||
 | 
					  loop:
 | 
				
			||||||
 | 
					    - /opt/stacks/pinry
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Template out the compose file
 | 
				
			||||||
 | 
					  ansible.builtin.template:
 | 
				
			||||||
 | 
					    src: pinry-compose.yml.j2
 | 
				
			||||||
 | 
					    dest: /opt/stacks/pinry/compose.yml
 | 
				
			||||||
 | 
					    owner: root
 | 
				
			||||||
 | 
					    mode: 644
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: deploy pinry stack
 | 
				
			||||||
 | 
					  community.docker.docker_compose_v2:
 | 
				
			||||||
 | 
					    project_src: /opt/stacks/pinry
 | 
				
			||||||
 | 
					    files:
 | 
				
			||||||
 | 
					    - compose.yml
 | 
				
			||||||
@@ -16,7 +16,15 @@ pages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - size: full
 | 
					      - size: full
 | 
				
			||||||
        widgets:
 | 
					        widgets:
 | 
				
			||||||
          - type: hacker-news
 | 
					          - type: group
 | 
				
			||||||
 | 
					            widgets:
 | 
				
			||||||
 | 
					            - type: hacker-news
 | 
				
			||||||
 | 
					            - type: rss
 | 
				
			||||||
 | 
					              limit: 10
 | 
				
			||||||
 | 
					              collapse-after: 3
 | 
				
			||||||
 | 
					              cache: 3h
 | 
				
			||||||
 | 
					              feeds:
 | 
				
			||||||
 | 
					              - url: https://hiro.report/rss/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          - type: videos
 | 
					          - type: videos
 | 
				
			||||||
            channels:
 | 
					            channels:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								roles/docker/templates/pinry-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								roles/docker/templates/pinry-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					services:
 | 
				
			||||||
 | 
					  pinry:
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - pinry:/data
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - SECRET_KEY=no2254XiwYFWDnt2UW6wraSbVPRdHx8wVIeBh3jeYcI=
 | 
				
			||||||
 | 
					      - ALLOW_NEW_REGISTRATIONS=False
 | 
				
			||||||
 | 
					    image: getpinry/pinry
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  pinry:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					networks:
 | 
				
			||||||
 | 
					  default:
 | 
				
			||||||
 | 
					    external: true
 | 
				
			||||||
 | 
					    name: lava
 | 
				
			||||||
		Reference in New Issue
	
	Block a user