Compare commits
	
		
			3 Commits
		
	
	
		
			v0.15.2
			...
			6885dfbb38
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6885dfbb38 | |||
| 86a16629fd | |||
| 6d402aca32 | 
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					FROM golang:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apk add --no-cache pandoc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					WORKDIR /var/www/cpolis
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY . .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN go build -o cpolis cmd/main.go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["./cpolis"]
 | 
				
			||||||
@@ -51,8 +51,8 @@ func newConfig() *Config {
 | 
				
			|||||||
		MaxImgWidth:       1920,
 | 
							MaxImgWidth:       1920,
 | 
				
			||||||
		PDFDir:            "/var/www/cpolis/pdfs",
 | 
							PDFDir:            "/var/www/cpolis/pdfs",
 | 
				
			||||||
		PicsDir:           "/var/www/cpolis/pics",
 | 
							PicsDir:           "/var/www/cpolis/pics",
 | 
				
			||||||
		Port:              ":8080",
 | 
							Port:              ":1664",
 | 
				
			||||||
		Version:           "v0.15.2",
 | 
							Version:           "v0.16.0",
 | 
				
			||||||
		WebDir:            "/var/www/cpolis/web",
 | 
							WebDir:            "/var/www/cpolis/web",
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										22
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					services:
 | 
				
			||||||
 | 
					  app:
 | 
				
			||||||
 | 
					    build: .
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "1664:1664"
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - /path/to/serviceAccountKey.json:/var/www/cpolis/serviceAccountKey.json
 | 
				
			||||||
 | 
					      - /var/log/cpolis.log:/var/log/cpolis.log
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - db
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  db:
 | 
				
			||||||
 | 
					    image: mariadb:latest
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      MYSQL_ROOT_PASSWORD: example
 | 
				
			||||||
 | 
					      MYSQL_DATABASE: cpolis
 | 
				
			||||||
 | 
					      MYSQL_USER: exampleuser
 | 
				
			||||||
 | 
					      MYSQL_PASSWORD: examplepass
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "3306:3306"
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - ./path/to/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql
 | 
				
			||||||
@@ -38,11 +38,11 @@
 | 
				
			|||||||
    </main>
 | 
					    </main>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <footer class="text-center text-gray-500 my-8">
 | 
					    <footer class="text-center text-gray-500 my-8">
 | 
				
			||||||
        <p>© 2024 Jason Streifling. Alle Rechte vorbehalten.</p>
 | 
					        <p>© 2025 Jason Streifling. Alle Rechte vorbehalten.</p>
 | 
				
			||||||
        <p>{{.Version}} - <strong>Alpha: Drastische Änderungen und Fehler vorbehalten.</strong></p>
 | 
					        <p>{{.Version}} - <strong>Alpha: Drastische Änderungen und Fehler vorbehalten.</strong></p>
 | 
				
			||||||
    </footer>
 | 
					    </footer>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <script src="https://unpkg.com/htmx.org@2.0.3"></script>
 | 
					    <script src="https://unpkg.com/htmx.org@latest"></script>
 | 
				
			||||||
    <script src="https://unpkg.com/easymde/dist/easymde.min.js"></script>
 | 
					    <script src="https://unpkg.com/easymde/dist/easymde.min.js"></script>
 | 
				
			||||||
    <script>
 | 
					    <script>
 | 
				
			||||||
        document.addEventListener('DOMContentLoaded', () => {
 | 
					        document.addEventListener('DOMContentLoaded', () => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user