Spaces:
Sleeping
Sleeping
| # Use official Nextcloud image | |
| FROM nextcloud:latest | |
| # Set working directory | |
| WORKDIR /var/www/html | |
| # Expose Hugging Face Spaces default port | |
| EXPOSE 7860 | |
| # Change Apache port to 7860 | |
| RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf && \ | |
| sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf | |
| # Enable recommended Apache modules | |
| RUN a2enmod rewrite headers env dir mime | |
| # ✅ Configuration Variables (Safe to be public) | |
| # Note: Admin User/Pass are missing here intentionally. | |
| # They will be injected via HF Space Settings. | |
| ENV SQLITE_DATABASE=nextcloud.db \ | |
| NEXTCLOUD_DATA_DIR=/var/www/html/data \ | |
| TZ=Asia/Ho_Chi_Minh \ | |
| NEXTCLOUD_TRUSTED_DOMAINS=taowang1993-nextcloud.hf.space \ | |
| OVERWRITEHOST=taowang1993-nextcloud.hf.space \ | |
| OVERWRITEPROTOCOL=https \ | |
| OVERWRITECLIURL=https://taowang1993-nextcloud.hf.space | |
| # CMD is already set in base image |